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,
We are looking at easy ways to insert (and delete) data within a wpDataTable via PHP.
Our use case is this:
Frontend users will be able to submit a CSV file via a form. That submission needs to be reviewed by an admin user before the data is then inserted into the wpDataTable that we have set up. We are happy to create the form ourselves and manage the approval part. When the submission is approved we want to use a simple PHP function to insert the data (without having to set up our own SQL connection to the external database that we're using).
Does that exist within a class somewhere in the plugin? Or at least the ability to retrieve a database connection, then we run the SQL against that ourselves?
Best wishes
Jonny
Hello Jonny.
Thank you for reaching out to us.
Something like this can't be achieved with wpDataTables' built-in features, so it's considered a custom solution, which is not covered by our support.
Updating of table's data is covered only for manual tables. For the separate DB connection, you can check out this class: wp-content/plugins/wpdatatables/source/class.connection.php
You can also take a look at the method addDataSourceToTable in the file wp-content/plugins/wpdatatables/source/class.wdtconfigcontroller.php, around line 1816 and adjust it.
This is just advice since, as I mentioned above, we don't provide customization services. You can also take a look at our filters, hooks, and front-end table callbacks.
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