Warning: This function has been deprecated. Use is_user_member_of_blog() instead.

is_blog_user() WordPress Function

This function is used to check if a user is a blog author.

is_blog_user( int $blog_id ) #

Checks if the current user belong to a given site.


Description

Top ↑

See also


Top ↑

Parameters

$blog_id

(int)(Required)Site ID


Top ↑

Return

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


Top ↑

Source

File: wp-includes/deprecated.php

function is_blog_user( $blog_id = 0 ) {
	_deprecated_function( __FUNCTION__, '3.3.0', 'is_user_member_of_blog()' );

	return is_user_member_of_blog( get_current_user_id(), $blog_id );
}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Use is_user_member_of_blog()
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More