WPDev.one
Core Function
View Source on Trac ↗

is_user_member_of_blog()

is_user_member_of_blog( mixed $user_id = 0, mixed $blog_id = 0 )

Finds out whether a user is a member of a given blog.

Parameters 0 required

Name / Type Description
$user_id
int

Optional. The unique ID of the user. Defaults to the current user.

$blog_id
int

Optional. ID of the blog to check. Defaults to the current site.

Return Value

(bool)
bool

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/user.php
Advertisement