• Resolved slurve

    (@slurve)


    Hi. Is it possible to activate Appearance > Menus for an Editor? Seems like it’s hidden by default for Editors. I’d like to allow them to make changes to the menus, but not be able to access Themes or Widgets. Thanks in advance for any help.

    Tom

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter slurve

    (@slurve)

    Figured this out. Well, I’m not sure if it’s the best solution, but hey, it works. I added the following code to functions.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' );

    I also deactivated the theme editor, widgets and theme options in the Adminize settings.

    Tom

    Thanks – just what I was looking for!!! Works like a charm.

    shaunkrd

    (@shaunkrd)

    Thanks from me too. That code snippet combined with the excellent plugin has saved me loads of time. Thanks for sharing!

    Thanks !!!

    Now that the Appearance item is back, i’d like to be able to do the same with the “widget set” plugin (that should appear at the bottom of the Appearance menu).

    The strange thing is that there is a line for it in the Adminize plugin, but it just don’t appear when connected with the editor permission…

    Any idea about what where i could find the argument to put in place of the ‘edit_theme_options’ ?

    $role_object->add_cap( ‘please_show_my_plugin’ );

    ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Adminimize] Is it possible to activate Appearance > Menus for an Editor?’ is closed to new replies.