As previously announced via banners and our newsletters, support is no longer available through this platform.
For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.
You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.
Paid customers: Please log in to your store account for support.
Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com
Hi !
How can I prevent other users from adding or deleting rows in a table?
I want only admins to have this ability. All other users can only edit records.
Imagine something like this in your source code, somewhere in the beginning of delete function:
if (get_current_user_id() != 1 ) exit;
meaning only user with id = 1 can add or delete records.
Hello Nikos
Thank you for your purchase.
At the moment, you can only choose which user roles will be able to interact with the table. Meaning, which roles will be able to add new, edit and delete rows.
You can, however, use this CSS to hide the table's "Add new" and "Delete" buttons from front-end, so they would only be able to edit the rows:
You will also need to hide the "Apply and add new" button in the Edit modal:
You can add this code in between the <style>...</style> tags on the page, before the wpDataTable shortcode.
Hope this helps.
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