Function: is_blog_user

is_blog_user( integer $blog_id )

Checks if the current user belong to a given site.

Parameters

Name Type(s) Default Value Description
$blog_id integer

Site ID

Returns

boolean

True if the current users belong to $blog_id, false if not.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.