Inactive
6 points
Getting my WPMU DEV Wings
I'm new here
Farhan
Member — 27th June 2009
On normal wp i had a code in theme to check userlevel
if($current_user->user_level >= 1)
do this else that.
If i want to this in wpmu on blog id 1. can anyone tell me how to do this ?
Thanks

Responses (3)
Erstwhile founder — 27th June 2009 #
Something like this should work:
if ( $current_user->user_level >= 1 && $wpdb->blogid == 1 ) {
} else {
}
Thanks,
Andrew
Keeper of the Dark Chocolate — 27th June 2009 #
I thought we weren't supposed to use userlevels anymore?
Erstwhile founder — 27th June 2009 #
No clue. I usually check for specific capabilities.
Thanks,
Andrew
Become a member