is_blog_user()

最后更新于:2021-11-27 08:25:35

is_blog_user( int$blog_id)

Checks if the current user belong to a given site.

参数

$blog_id

(int) (Required) Site ID

响应

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

源文件

文件: gc-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 );
}