wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_blog_user › WordPress Function

Since
已弃用3.3.0
is_blog_user ( $blog_id = 0 )
参数:
  • (int) $blog_id Site ID
    Required: No
    默认:
查看:
返回:
  • (bool) True if the current users belong to $blog_id, false if not.
定义在:
文档:
Change Log:
  • MU

Checks if the current user belong to a given site.



源码

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 );
}