How To Give Menu Edit Access Role To Editor in WordPress
In WordPress menu, edit access allows only for admin and super admin role, so whenever we need to assign capability for another role, we need to modify the WordPress theme functions file, then another role we able to access. There is a lot of plugins available in a market like user role editor.
How To Give Menu Edit Access Role To Editor?
These are the role of WordPress
By default when user trying to register into WordPress applications, WordPress allows them as Subscriber users, and menu and plugin and theming edit and add capability is not available for the author, editor, subscriber. But whenever we want to provide the access for this role, we need to modify our themes function, then other roles will be able to access the dashboard functionality as per user role.
Follow these Steps to provide menu edit access to editor role in WordPress
- Just go to your active themes
- Find themes functions.php
- You can go wp-content/themes/yourtheme/functions.php
- add bellow line to allow the editor to access menu edit
$role_object = get_role( 'editor' );
$role_object->add_cap( 'edit_theme_options' );
Anything else let me notify in the comment.