We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hi.
Is It possible to pass dynamic data to PHP Array generated table?
I'd like to create a PHP file and put in it a WP_query where a parameter is related to the user that is visiting the page or It depends from the page that Is showing the table.
Any way to achieve that?
Hi, Massimiliano
Thanks for reaching out to us
- Please check out this documentation page with a general example of how the serialized PHP array can be used to create tables;
;
Then, to achieve what you described, there is a hook available in the Premium version of the plugin ( the Lite version doesn't have that functionality):
You need to add one more hook to filter the URL of the PHP file.
In file wp-content/plugins/wpdatatables/source/class.wpdatatable.php: around line 1875
you will find this
and under it add this
so it looks like this
In hook, you will do something like this
In the PHP file, you will use the $_GET method to take the values from the URL which is filtered with the hook
I try to be detailed as I can so you can do this very easily.
Let me know is it working as you need, or if anything wasn't clear enough. Thanks.
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
Ok, quite clear.
I already have the pro version of the plugin.
In this way, every time the plugin updates, I have to edit the line 1875 in file wp-content/plugins/wpdatatables/source/class.wpdatatable.php, don't I?
My apologies, Massimiliano.
The developers actually already added the hook in the PHP file, it is in the latest version,
the original information I have you was not up-to-date.
- So basically, you won't have to change the code of the plugin, rather just implement the hook with the logic you need, that should do the trick.
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