The MU forums have moved to WordPress.org

Check for user is SiteAdmin or BlogAdmin (3 posts)

  1. Mattz
    Member
    Posted 16 years ago #

    Ofcourse we have the is_admin() function we can use to check if a logged in user is admin.

    What I would like to do is check if the user is the Site Admin of the whole blogging enviroment or the Admin (owner) of a blog.

    Why I would like to do this is because I want to prevent BlogAdmin from using some stuff there I as a SiteAdmin ofcourse need to be able to do that stuff.

    Is this possible so I can use a if() to show it to the SiteAdmin and not a blog-admin ?

  2. jackiedobson
    Member
    Posted 16 years ago #

    is_site_admin() is the check you're thinking of.

  3. Mattz
    Member
    Posted 16 years ago #

    Thanks ! I really forgot about that one !

About this Topic