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



check_import_new_users ›

Since3.0.0
已弃用n/a
check_import_new_users ( $permission )
参数:
  • (string) $permission A permission to be checked. Currently not used.
    Required: Yes
返回:
  • (bool) True if the user has proper permissions, false if they do not.
定义在:
文档:

Checks if the current user has permissions to import new users.



源码

function check_import_new_users( $permission ) {
	if ( ! current_user_can( 'manage_network_users' ) ) {
		return false;
	}

	return true;
}