Last Updated: February 25, 2016
·
675
· Kresimir Pendic

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