Holiday Notice – Support Unavailable on April 18 and April 21
We just wanted to let you know that our support team will be offline on Friday, April 18th (Good Friday) and Monday, April 21st (Easter Monday) due to the holidays.
We'll be back on Tuesday, ready to assist you!
In the meantime, if you need any help, feel free to:
-
Use the support widget in the bottom right corner on our websites (Amelia and wpDataTables) — our latest AI-powered assistant is there 24/7 to help with basic and intermediate questions,
-
Browse our detailed documentation (Amelia, wpDataTables)
-
Explore helpful articles,
-
Or check out our YouTube channels for video guides!
Amelia YouTube Channel
wpDataTables YouTube Channel
Thank you for your understanding, and we wish you a wonderful holiday weekend!
Good afternoon.
I need to save in the database the date of the last update and the name of the user that made the change (the one logged in wordpress). Is there a way I can do that with the datatable plugin when editing the columns or that can I intercept the data at the moment of saving and inserting this information in any part of the scripts that saves it?
I basically created two new columns in the database table, and what I want to do is keep that columns as not editable by the user, but get the values from the system (current date and logged user)
Hi Jesse,
Thank you for the purchase.
Unfortunately something like this is not possible out of the box, but it can be achieved with Custom Coding. If you don't want to change plugin code, you could create Custom Page Template and place PHP logic there. You can use wp_get_current_user() function to get current logged-in user. To see how to get the current date you can take a look at this link. If you need our assistance with this we can offer you our paid customization service.
Good morning Milos.
I have solved the problem this weekend with the exact same idea you just gave me. I've created a PHP page and some JavaScript code to get the logged user and the date, then I intercept any changes in the table and trigger the code to append the desired information before saving the data.
Thank you very much for your help.
Hi Jesse,
You are welcome