how can I do to give permission to an editor-type user just to edit but not to delete a record, and how do I give permissions to another type of user to be able to edit and delete records from the same table
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
You can choose which user roles will be able to edit the table, but that means they will be able to add new rows, edit existing ones, and delete rows. You can take a look at this thread and see how you can hide the "Delete" button, so they are not able to delete anything.
However, if you do this, your other users wouldn't be able to delete the records from the table either.
You may want to add the CSS only on front-end, in between the <style>...</style> tags, so it only applies to the front-end tables. Then, you can provide admin credentials to the other users, so they can delete rows from back-end.
If you need to limit the user role, so they can access only wpDataTables, but don't have general Admin role permissions, you can install the User Role Editor plugin, and define their limitations there.
how can I do to give permission to an editor-type user just to edit but not to delete a record, and how do I give permissions to another type of user to be able to edit and delete records from the same table
Hello alan
Thank you for your purchase.
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
You can choose which user roles will be able to edit the table, but that means they will be able to add new rows, edit existing ones, and delete rows. You can take a look at this thread and see how you can hide the "Delete" button, so they are not able to delete anything.
However, if you do this, your other users wouldn't be able to delete the records from the table either.
You may want to add the CSS only on front-end, in between the <style>...</style> tags, so it only applies to the front-end tables. Then, you can provide admin credentials to the other users, so they can delete rows from back-end.
If you need to limit the user role, so they can access only wpDataTables, but don't have general Admin role permissions, you can install the User Role Editor plugin, and define their limitations there.
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