check_import_new_users()

check_import_new_users()函数是Wordpress函数,检查当前用户是否具有导入新用户的权限。

check_import_new_users( string $permission )

参数(Parameters)

参数类型必填说明
$permission(string)必需要检查的权限。当前未使用。

返回(Return)

(bool)如果用户有适当的权限,则为True;如果没有权限,则为false。


源码(Source)

/**
 * Checks if the current user has permissions to import new users.
 *
 * @since 3.0.0
 *
 * @param string $permission A permission to be checked. Currently not used.
 * @return bool True if the user has proper permissions, false if they do not.
 */
function check_import_new_users( $permission ) {
	if ( !is_super_admin() )
		return false;
	return true;
}
// See "import_allow_fetch_attachments" and "import_attachment_size_limit" filters too.
更新版本源码位置使用被使用
3.0.0wp-admin/includes/ms.php:62301 function
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索