I try to create a table with serialized php array as datasource using the placeholder %CURRENT_USER_ID% so that I can have access to wordpress current user id in the standalone php file. But I cannot make it work.
Here is the URL of the PHP file I set in wpdatatables : https://......../listings-all-statistics.php?user_id=%CURRENT_USER_ID%
Here is how I try to get the current user id in the php file : $_GET['user_id'].
Is that something possible ? Should it work this way with the placeholders ?
Hi,
First, thanks for this great plugin.
I try to create a table with serialized php array as datasource using the placeholder %CURRENT_USER_ID% so that I can have access to wordpress current user id in the standalone php file. But I cannot make it work.
Here is the URL of the PHP file I set in wpdatatables : https://......../listings-all-statistics.php?user_id=%CURRENT_USER_ID%
Here is how I try to get the current user id in the php file : $_GET['user_id'].
Is that something possible ? Should it work this way with the placeholders ?
Thanks for your help.
Fabian
My bad, it works fine now.
I might have missed something... somewhere...
You can close this ticket.
Hey Fabian.
Thanks for letting us know.
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Best regards.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables