Return to Snippet

Revision: 45718
at May 5, 2011 23:42 by hopeworks


Initial Code
<?php
add_action( 'init', 'my_role_modification' );
function my_role_modification() {
	$role = get_role( 'editor' );
	$role->add_cap( 'edit_theme_options' );
}

?>

Initial URL

                                

Initial Description
As of WordPress 3.1.2, Editors do not have access to the menu editor in WordPress. The following code gives that capability to Editors. Add this code to your functions.php file.

Initial Title
Give Editors permission to edit menus in WordPress

Initial Tags
wordpress

Initial Language
PHP