Purpose of Adding Capability to Role But Not Grant?
Purpose of Adding Capability to Role But Not Grant?
Purpose of Adding Capability to Role But Not Grant?
First read this. THen you can try this
Featured image not working, because of custom user role?
Allow user role “salesman” to view only “client” role users
User levels and post visibility
Roles are assigned by the admin (or automatically by some theme or plugin) and therefor can not be assigned before the user is manageable by the admin, which doesn’t happen before all the activation stages are completed. Therefor there is not enough info at the signup stage about the user role and you need to … Read more
The wp_dropdown_roles() function internally uses get_editable_roles() to fetch the needed roles. It does nothing else than fetching the roles from the global: $all_roles = $GLOBALS[‘wp_roles’]->roles; and filter it afterwards: return apply_filters( ‘editable_roles’, $all_roles ); So you can simply add the following function to a plugin or your functions.php file of your theme: function wpse137935_filter_editable_roles( Array … Read more
I use Advanced Access Manager plugin to manage rights and permissions with users and roles. First, don’t change administrator capabilities or you also lose those. Instead, select the User you want to change the permissions for and adjust that person’s Admin settings.
The plugin contains for example these lines: add_menu_page(‘Newsletter’, ‘Newsletter’, ($this->options[‘editor’] == 1) ? ‘manage_categories’ : ‘manage_options’, ‘newsletter_main_index’); add_submenu_page(‘newsletter_main_index’, $title, $title, ($newsletter->options[‘editor’] == 1) ? ‘manage_categories’ : ‘manage_options’, $name, $name); add_submenu_page(null, $title, $title, ($newsletter->options[‘editor’] == 1) ? ‘manage_categories’ : ‘manage_options’, $name, $name); so it looks like you have the option to display the Newsletter menu for … Read more
Add custom role across network in multisite