zzc3fa
Last Updated: February 25, 2016
·
376
· mkdizajn
Kreso 300x300

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

Say Thanks
Respond