Posted By

hopeworks on 05/05/11


Tagged

wordpress roles


Versions (?)

Give Editors permission to edit menus in WordPress


 / Published in: PHP
 

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.

  1. <?php
  2. add_action( 'init', 'my_role_modification' );
  3. function my_role_modification() {
  4. $role = get_role( 'editor' );
  5. $role->add_cap( 'edit_theme_options' );
  6. }
  7.  
  8. ?>

Report this snippet  

You need to login to post a comment.