WordPress.org

Support

Support » Plugins and Hacks » User Role Editor » Newsletter Plugin add capabilities

Newsletter Plugin add capabilities

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have exactly the same question. How can I add capabilitiy for the newletter plugin.

    Plugin page: http://wordpress.org/plugins/newsletter/

    Plugin Author Vladimir Garagulya

    @shinephp

    Hi,

    Plugin uses “manage_options” capability for its menu by default.
    At the “Configuration” page “Advanced Settings” tab you may allow access to this plugin for users with “manage_categories” capability, who have role “Editor” usually.

    If you wish to assign your own capability, change line #251 at plugin.php file:

    add_menu_page('Newsletter', 'Newsletter', ($this->options['editor'] == 1) ? 'manage_categories' : 'manage_options', 'newsletter_main_index');

    and do the same for line #520:

    add_submenu_page('newsletter_main_index', $title, $title, ($newsletter->options['editor'] == 1) ? 'manage_categories' : 'manage_options', $name, $name);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Newsletter Plugin add capabilities’ is closed to new replies.
Skip to toolbar