Test to see if user is a site admin, can it be done in MU?
-
OK so in plain english I want to code the following in WPMU:
If current user has a blog then show banner
So I thought perhaps the following WP method might work:
if (current_user_can('administrator'))
Ive also tried
is_admin()
but these only show a banner for the super network admin. I want it to show for just site admins.
I had a quick look in the database and can see wp_user_level wp_2_user_level and wp_3_user_level does the current_user_can and is_admin function just link in with wp_user_level?
How can I achieve this check to see if a user has a blog in my MU install? Do I need a custom sql query?
Any help mucho appreciated
Ta
- The topic ‘Test to see if user is a site admin, can it be done in MU?’ is closed to new replies.