如何让 Wordpress 编辑者访问 Google 站点工具包插件?



在WordPress中,我给一些用户一个特定的角色(管理员,编辑等(。默认情况下,这些用户无法访问 Google 站点工具包插件。您知道我如何打开此功能的选项吗?

也许是函数中的代码.php? 我不想像用户角色那样添加新插件。

编辑权限.php , plugins->google-site-kit->inlucdes->core->permissions->permissions.php

$this->primitive_to_core = array(
            // By default, only allow administrators to authenticate.
             //self::AUTHENTICATE        => 'manage_options', 
            self::AUTHENTICATE        => 'edit_others_posts',
            // Allow contributors and up to view their own post's insights.
            self::VIEW_POSTS_INSIGHTS => 'edit_posts',
            // Allow editors and up to view the dashboard and module details.
            self::VIEW_DASHBOARD      => 'edit_others_posts',
            self::VIEW_MODULE_DETAILS => 'edit_others_posts',
            // Allow administrators and up to manage options and set up the plugin.
            //self::MANAGE_OPTIONS      => 'manage_options',
            //self::SETUP               => 'manage_options',
            self::MANAGE_OPTIONS      => 'edit_others_posts',
            self::SETUP               => 'edit_others_posts',
            // Allow to differentiate between authors and contributors.
            self::PUBLISH_POSTS       => 'publish_posts',
        );

相关内容

  • 没有找到相关文章

最新更新