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!
wpdatatables_filter_formdata_before_save exists in the wdt_ajax_actions.php file but is not described in the documentation. While is really helpful when you need to add auto timestamp for example.
If someone need such function can grab some code:
function timestamp_for_wpdatatables ( $formdata, $tableId ) {
$columnsData = WDTConfigController::loadColumnsFromDB($tableId);
foreach ($columnsData as $column) {
if ($column->orig_header == "timestamp") {
$formdata["timestamp"] = date("Y-m-d H:i:s");
}elseif ($column->orig_header == "created" && get_query_var('new_created_for_wpdatatables') == true) {
$formdata["created"] = date("Y-m-d H:i:s");
}
}
return $formdata;
}
add_filter('wpdatatables_filter_formdata_before_save', 'timestamp_for_wpdatatables',10,2);
function created_for_wpdatatables ( $formdata, $tableId ) {
if ($formdata['wdt_ID'] == '') {
set_query_var('new_created_for_wpdatatables', true);
}
return $formdata;
}
add_filter('wpdatatables_filter_frontend_formdata', 'created_for_wpdatatables',10,2);
This can auto-increment datetime into columns with headers "timestamp" or "created"
Hi Piotr,
Thank you for your purchase.
Sorry for late response.
We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.
Yes there are more filters in hooks that is added recently, and we have to update our dev docs for actions and filters. Thank you for sharing this code. We will provide it to other customer who will need this functionality.
Best regards.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables