Wordpress, elevate 'editor' role to change widgets and menus in admin
Extend the role of your editors so they can manipulate widgets and menus in themes..
//----------------------------------------------------------/
// for editor user add widgets & menu caps!
//----------------------------------------------------------/
$role_object = get_role( 'editor' );
$role_object->add_cap( 'edit_theme_options' );
paste somewhere in your functions.php file of active theme.
If you need to reset it,, use this:
//----------------------------------------------------------/
// for editor user add widgets & menu caps!
//----------------------------------------------------------/
$role_object = get_role( 'editor' );
$role_object->remove_cap( 'edit_theme_options' );
cheers, k
Written by kreso
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Wordpress
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#