Revision: 65133
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 28, 2013 01:27 by lromak
Initial Code
<?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'); ?>
Initial URL
http://wp-snippets.com/change-role-access-to-menus-and-widgets/
Initial Description
Instructions: 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
wordpress
Initial Language
PHP