Return to Snippet

Revision: 65133
at October 28, 2013 01:27 by lromak

Initial Code
// get the the role object
$role_object = get_role('editor');
// add $cap capability to this role object

Initial URL

Initial Description

WordPress menus and sidebars/widgets are really powerful modules, but unfortunately it requires Admin user role to edit them.

If you would like to allow users with Editor user role to edit any of the widgets or menus, just paste the code below into your themes functions.php file.

Initial Title
Change role access to Menus and Widgets

Initial Tags

Initial Language