Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
If you need to send table data to an API,
at the moment, with our plugin's built-in functionalities, there is no way to achieve this.
Our developers did not create a PHP API or REST API for our plugin yet,
there weren't many requests for it in the past;
but a couple more people have been asking for it recently.
We do still have it on our "to-do" list, but the features suggested on this page were more about other features and improvements for the plugin.
Please feel free to add this as a feature suggestion on the page linked above, so the number of votes goes up. We develop new features based on the number of votes received from our customers, so your vote can be beneficial to have this included sooner.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
-
At this time, if you have coding skills,
you could make custom routes that you would write yourself,
and you would have to create the logic that will pull data from the database that you need for tables, and to send them.
A custom workaround like that would not be covered by our support.
It probably can be done with some custom work, but our developers are very busy at the moment, working on some priority tasks and fixing bugs and issues with our plugins, so they won't be having the time for custom work in the near future.
-
For example, here is what our developers advised in one situation when a user was sending data, this custom hook was triggered when a user updates an Editable Table and sending it to an API :
You can use this hook wpdatatables_filter_formdata_before_save
//$formData array of entries from edit modal
// $tableID table id int
function updateValuesBeforeSave($formData,$tableID){
//for specific table id
if ($tableID == 1) {
//Your logic to send data to API URL from for example column that have orig_header col_1
// you will use $formData['col_1']
// then response from your API URL you will insert on anoter column that you need for example if column is
// called col_2 then you will insert response of that API like this
// $formData['col_1'] =
//response from your API URL
// then that data will be saved in database and also shown in your table on front } return $formData;
}
add_filter('wpdatatables_filter_formdata_before_save','updateValuesBeforeSave', 10, 2);
I hope that might help you, at least as a starting idea.
Just wanted to point, these are custom solutions, which are not included as part of our support.
Even though we always give extra effort to give examples, if we have any for certain situations.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
Hello,
We`re (as Company) cosindering buying Full/Pro version of wpDataTables.
But before this - there is one problem im currently strugling with - API Integration.
I need to pass to server one parameter (key:value) - I don`t see any option for that.
There is only plase for headers.
I also "hard-coded" this parameter in query string - and it works fine. But this is not a solution to the problem.
I would be grateful for Yours help.
Paweł
Hi Paweł,
Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.
-
If you need to send table data to an API,
at the moment, with our plugin's built-in functionalities, there is no way to achieve this.
Our developers did not create a PHP API or REST API for our plugin yet,
there weren't many requests for it in the past;
but a couple more people have been asking for it recently.
We do still have it on our "to-do" list, but the features suggested on this page were more about other features and improvements for the plugin.
Please feel free to add this as a feature suggestion on the page linked above, so the number of votes goes up. We develop new features based on the number of votes received from our customers, so your vote can be beneficial to have this included sooner.
You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;
and our newsletter, so you're informed about new features, bug fixes, freebies, etc.
-
At this time, if you have coding skills,
you could make custom routes that you would write yourself,
and you would have to create the logic that will pull data from the database that you need for tables, and to send them.
You can also check our available hooks for developers here.
A custom workaround like that would not be covered by our support.
It probably can be done with some custom work, but our developers are very busy at the moment, working on some priority tasks and fixing bugs and issues with our plugins, so they won't be having the time for custom work in the near future.
-
For example, here is what our developers advised in one situation when a user was sending data, this custom hook was triggered when a user updates an Editable Table and sending it to an API :
You can use this hook wpdatatables_filter_formdata_before_save
I hope that might help you, at least as a starting idea.
Just wanted to point, these are custom solutions, which are not included as part of our support.
Even though we always give extra effort to give examples, if we have any for certain situations.
Please note that using hooks requires certain level of programming skills and included support refers only to advice.
Thank you
Kind Regards,
Miloš Jovanović
[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