Viewing 4 replies - 1 through 4 (of 4 total)
  • @prabhat,

    There is a filter in the plugin you can use to elevate the access capabilities to the profile page so that subscribers won’t have access to it.

    It’s described more fully in the FAQs but this should work:

    function s2_admin_changes( $capability, $menu ) {
        if ( $menu == 'user' ) {
            return 'manage_options';
        }
        return $capability;
    }
    add_filter('s2_capability', 's2_admin_changes', 10, 2);
    Thread Starter automationguru

    (@automationguru)

    Hi Matthew,

    I put the above function in subscribe2.php and it works great.

    Thanks a lot 🙂

    Regards,
    Prabhat

    Thread Starter automationguru

    (@automationguru)

    Hey Matthew,

    How can I make disable this menu for Authors as well ?

    Regards,
    Prabhat

    @prabhat,

    According to this WordPress page on capabilities, that code should block authors from that page too. If you are talking about the other pages you need to add a few more line of code for each of the other page types or you could simply remove the ‘if’ block to leave the functions as”return ‘manage_options’;” alone, that should work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove Subscribe2 Option from Profile page’ is closed to new replies.