I have used this filter in the past add_filter('wpdatatables_filter_formdata_before_save to be able to modify the data submitted before it gets saved to the sql database. Is there a similar hook like before_delete or something. I want to capture when a user selects to delete a record thru wpdatables and use the info to use php to delete a matching record in another table. Basically i just need a hook i can use to let me know when a user deletes a record.
I have used this filter in the past add_filter('wpdatatables_filter_formdata_before_save to be able to modify the data submitted before it gets saved to the sql database. Is there a similar hook like before_delete or something. I want to capture when a user selects to delete a record thru wpdatables and use the info to use php to delete a matching record in another table. Basically i just need a hook i can use to let me know when a user deletes a record.
Thanks..
Hello hrvresort
Would this one help?
wpdatatables_before_delete_row( $rowId, $tableId )
This action is called before a row is deleted from the frontend editor.
$rowId is the value of ID column.
$tableId is the table ID from wp_wpdatatables table.
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