Codex

WPMU Functions/is blog user

Contents

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
   
}
?>