WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] current_user_can with Super Admin? (3 posts)

  1. housebg
    Member
    Posted 2 years ago #

    I'm trying to block access to some menu items for everyone who is not the Super Admin on my site. I know there are plugins available, but I'm trying to do this old school for my own eduction.

    If I use current_user_can('administrator') will that only affect the admin of the site and not the Super Admin? Is there the ability to do
    !current_user_can('super admin') ?

    I'm also curious what user level the super admin is? I know the admin is level 10 - did they make a level 11? :-)

  2. housebg
    Member
    Posted 2 years ago #

    Oh Thank You, might Half-Elf! :-) Absolutely perfect.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.