allow other roles to access CDBT
-
Hi Everyone,
I’ve been trying to allow access for other roles than administrator to have full access of this plugin.As I think that I looked up that there are no user management function in CDBT and I have no desire to use role management plugins (I try to minimise plugins as much as I can), I already put some codes in the functions.php as followsfunction add_editor_access(){ $role = get_role('editor'); $role->add_cap('list_users'); $role->add_cap('edit_users'); $role->add_cap('delete_users'); } add_action('admin_init','add_editor_access');
I can’t find the add_cap parameter for CDBT plugin, where do I look it up or can anyone tell me what the parameter is?
https://www.ads-software.com/plugins/custom-database-tables/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘allow other roles to access CDBT’ is closed to new replies.