• Resolved anik786

    (@anik786)


    In my theme, editors are allowed to edit theme options.I do this using the following code in my functions using the following code:

    function custom_capabilities(){
        $editor = get_role( 'editor' );
        $editor->add_cap('edit_theme_options');
    }
    add_action( 'admin_init', 'custom_capabilities') ;

    Unfortunately the archive meta box does not appear in the menu under Appearance> Menu.

    However it works fine under admin accounts.

    Please help!

    https://www.ads-software.com/plugins/post-type-archive-links/

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

    (@anik786)

    UPDATE:

    I tried adding LOADS more capabilities and still no luck. How can I make this plugin work for editors.

    Plugin Contributor Franz Josef Kaiser

    (@f-j-kaiser)

    I tried adding LOADS more capabilities

    LOADS, even when written in all upper caps, is no proper description of what you have tried as it’s impossible to reproduce your steps.

    There is exactly one capability check (see source) in the is_allowed() method that only runs during the AJAX request. It checks for edit_theme_options.

    You will have to take a look at core to see why your authors can’t do that. I assume the problem will arise with pretty much every plugin that adds content at the nav menu.

    Thread Starter anik786

    (@anik786)

    Turns out that this did work. It was just hidden from the screen options menu for some reason! Thanks for the help ??

    Plugin Contributor Franz Josef Kaiser

    (@f-j-kaiser)

    You’re welcome ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editors cannot use plugin’ is closed to new replies.