The following snippet will let you change WordPress role access to menu and widgets.
1 2 3 4 5 6 | <?php // get the the role object $role_object = get_role('editor'); // add $cap capability to this role object $role_object->add_cap('edit_theme_options'); ?> |
Snippet Source/Credit: WP-Snippets.com