Support » Plugin: Subscribe2 » [Plugin: Subscribe2] "Send Email" only for Admins?

Viewing 3 replies - 1 through 3 (of 3 total)
  • (a simple workaround: Edit the plugin and comment the following line:

    add_submenu_page(‘s2’, __(‘Send Email’, ‘subscribe2’), __(‘Send Email’, ‘subscribe2’), apply_filters(‘s2_capability’, “publish_posts”, ‘send’), ‘s2_posts’, array(&$this, ‘write_menu’));


    By default any user who can publish a post can access this screen. If you want to restrict that to higher level users you can of course edit the code or you could use the filter that’s already built in. This should work to restrict the Send Email menu to administrators only

    function s2_admin_changes( $capability, $menu ) {
        if ( $menu == 'send' ) {
            return 'update_core';
        return $capability;
    add_filter('s2_capability', 's2_admin_changes', 10, 2);

    Thanks for the code!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Subscribe2] "Send Email" only for Admins?’ is closed to new replies.