• Resolved chrispink

    (@chrispink)


    I want to allow Editors access to Yoast options. Seems simple enough.

    There’s a couple of fudges on the net but nothing authorative. I have been persuaded by my marketing team that this plugin is worth having but I need to configure it the way I need it. Thanks.

    • This topic was modified 7 years, 8 months ago by chrispink.
Viewing 1 replies (of 1 total)
  • Thread Starter chrispink

    (@chrispink)

    The answer is here;

    (with the caveat that it should be written as a filter rather than hacking plugin core)

    Line 276 of class-admin.php

    /**
    * Returns the manage_options cap
    *
    * @return mixed|void
    */
    private function get_manage_options_cap() {
    /**
    * Filter: ‘wpseo_manage_options_capability’ – Allow changing the capability users need to view the settings pages
    *
    * @api string unsigned The capability
    */
    $manage_options_cap = apply_filters( ‘wpseo_manage_options_capability’, ‘manage_options’ );

    return $manage_options_cap;
    }

    Change

    $manage_options_cap = apply_filters( ‘wpseo_manage_options_capability’, ‘manage_options’ );

    to $manage_options_cap = apply_filters( ‘wpseo_manage_options_capability’, ‘publish_pages’ ) // publish_pages is something editors can do that authors can’t;

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