Give Editors permission to edit menus in WordPress


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  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


Comments


You need to login to view comments.