Codex tools: Log in
Contents |
Checks to see if the specified user is a member of the specified blog.
<?php is_user_member_of_blog( $user_id, $blog_id ); ?>
<?php
global $current_user;
get_currentuserinfo();
if ( is_user_member_of_blog( $current_user->ID ) ) {
echo 'You are a member of this blog.';
} else {
echo 'You are NOT a member of this blog.';
}
?>