Function: is_user_member_of_blog

is_user_member_of_blog( integer $user_id, integer $blog_id )

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


Name Type(s) Default Value Description
$user_id integer

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

$blog_id integer

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



WordPress Developer Newsletter

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