WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/is blog user


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

Use is_user_member_of_blog() instead.

Description

Checks to see if the current logged in user is a member of the blog specified.

Parameters

$blog_id
(integer) (optional) The id of the blog.
Default: Current blog id.

Return Values

(boolean) 
True, if user is a member of the blog, else false.

Usage

<?php is_blog_user($blog_id?>

Examples

<?php
   
If (is_blog_user()) {
      
//user is a member of this blog
   
}
?>