Support » Plugin: MailPoet Newsletters (Previous) » Restric admin for super-admin only?

  • Resolved pako69

    (@pako69)


    Hello
    In multisite configuration there is a super-admin on top of the others roles.
    I would like that only this one is able to access to the page: admin.php?page=wysija_campaigns (an his childres pages)

    I tried with remove_menu_page('wysija_campaigns');without success…
    Than you

    https://wordpress.org/plugins/wysija-newsletters/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Pako,

    Yeah that’s possible you just need to use the right priority in your hooks, use the priority 100 at least:

    function remove_menus(){
      remove_menu_page( 'wysija_campaigns' );
    }
    add_action( 'admin_menu', 'remove_menus',100 );

    Cheers

    thank you Ben

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restric admin for super-admin only?’ is closed to new replies.