Viewing 6 replies - 1 through 6 (of 6 total)
  • @nyxer,

    You haven’t been very specific so I’m guessing you are talking about access to the Subscribe2->Send Email page. Only Registered users with a user level of Author or above can access this page.

    If you don’t like that and want to change it it’s pretty easy with a little plugin (easier this way then editing the code so it is retained between updates)

    Visit the FAQ page and look for the question “I want to change the kinds of users who can access the Subscribe2 menus. Is that possible?”

    Thread Starter nyxer

    (@nyxer)

    I say add the code ..

    function s2_admin_changes( $capability, $menu ) {
        // $capability is the core WordPress capability to allow admin page access
        // $menu is the title of the page:
        //  'user' for access to personal subscription settings
        //  'manage' to allow access to the user management screen
        //  'settings' to allow access to the plugin settings
        //  'send' for access to the Send Email page
    
        // identify the menu you are changing capability for first
        // then return a new capability
        if ( $menu == 'send' ) {
            return 'read';
        }
    
        return $capability;
    }
    
    add_filter('s2_capability', 's2_admin_changes', 10, 2);

    in functions.php

    add it, but go in with an account of a subscriber and I can send messages like, I want only administrators to send emails

    Thread Starter nyxer

    (@nyxer)

    add the code,
    but I can still send messages to a subscriber account

    @nyxer,
    You need to read the code a little more:

    // identify the menu you are changing capability for first
    // then return a new capability

    So, you need to amend the capability, try using ‘manage_options’ instead of ‘read’.

    Thread Starter nyxer

    (@nyxer)

    sorry no English, use google translator,.

    I should do..

    change the code, by which…

    @nyxer,

    Your English is good for a non-English speaker ??

    Change:
    return 'read';

    To:
    return 'manage_options';

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Subscribe2] Help Suscriber2 Email-Massive’ is closed to new replies.