In the instructions for building a serialized php array it says to create a standalone php file that will return the serialized array. Can I call is_user_logged_in() in this standalone php file? Can I call user_can() in the file? I want to make sure this file is only executed by the wpdatatables plugin and not executed directly from the internet. Maybe a nonce should be supported for security.
I'm trying to use php to provide the data for the tables but I don't want to create a standalone php file for that (since someone could retrieve data using the standalone php file without logging into the site). I think I have figured out a solution. I can add a filter on wpdatatables_filter_serialized and provide the data in my filter function. The standalone php file will just return an array containing enough information for the filter function to actually retrieve the data.
In the instructions for building a serialized php array it says to create a standalone php file that will return the serialized array. Can I call is_user_logged_in() in this standalone php file? Can I call user_can() in the file? I want to make sure this file is only executed by the wpdatatables plugin and not executed directly from the internet. Maybe a nonce should be supported for security.
Hi Jonathan Eiseman,
Thank you for your purchase.
Sorry but I did not understand what are you trying to achieve. Can you please describe me more so I will be able to help. Thank you.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
I'm trying to use php to provide the data for the tables but I don't want to create a standalone php file for that (since someone could retrieve data using the standalone php file without logging into the site). I think I have figured out a solution. I can add a filter on wpdatatables_filter_serialized and provide the data in my filter function. The standalone php file will just return an array containing enough information for the filter function to actually retrieve the data.
Thanks, Jon
Hi Jonathan Eiseman,
We are glad that you find a solution.
If you have any others issues feel free to open a new ticket.
We will gladly help.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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