• Resolved lveale

    (@lveale)


    Hi

    I have a multisite setup and want to be able to create sites for users so that they can manage them themselves. As part of this I am restricting access to certain menu items using the ‘Members’ plugin.

    However, Yoast’s visibility is set through the manage_options tag meaning that for me to give editors access to it I have to give them access to a lot of other plugins and functionality that I don’t want them to use.

    Is there another way to enable Yoast for Editor’s without showing them everything that uses ‘Manage_options’?

    Many thanks

Viewing 1 replies (of 1 total)
  • You can try implementing the wpseo_manage_options_capability filter (see example below). For the health and safety of your site, we recommend that you make a backup of your website before making any changes.

    // define the wpseo_manage_options_capability callback
    function filter_wpseo_manage_options_capability( $manage_options )
    {
    $editor = get_role(‘editor’);
    $editor->add_cap($manage_options);
    return $manage_options;
    };

    // add the filter
    add_filter( ‘wpseo_manage_options_capability’, ‘filter_wpseo_manage_options_capability’, 10, 1 );

Viewing 1 replies (of 1 total)
  • The topic ‘Give Editor permissions’ is closed to new replies.