Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress - Allow Editors To Manage Theme Widgets

Is it possible to grant Editors the ability to manage theme widgets? By default, only Administrators can do so.

Thanks, Jon

like image 487
Jon Avatar asked Dec 10 '09 12:12

Jon


2 Answers

If you don't want to use a plugin, you can also add this to your functions.php or somewhere similar.

$role = get_role('editor');
$role->add_cap('edit_theme_options');
like image 150
SunnyRed Avatar answered Nov 13 '22 15:11

SunnyRed


I'm afraid you're going to need to use a plugin to achieve this, since changing Widgets is a switch_themes capability not available to Editors. You need a plugin that changes roles and capabilities (like Capability Manager). Check a similiar topic about this issue in Wordpress Forums.

like image 43
GmonC Avatar answered Nov 13 '22 14:11

GmonC