is_blog_user

Checks if the current user belong to a given site.

Description

is_blog_user( (int) $blog_id = 0 ); 

Parameters (1)

0. $blog_id — Optional. (int)
The blog id.

Usage

  1. if ( !function_exists( 'is_blog_user' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // The blog id. 
  5. $blog_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = is_blog_user($blog_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function is_blog_user( $blog_id = 0 ) { 
  2. _deprecated_function( __FUNCTION__, '3.3.0', 'is_user_member_of_blog()' ); 
  3.