函数原型
check_import_new_users( string $permission ): bool
函数描述
Checks if the current user has permissions to import new users.
是否弃用
未弃用
函数参数
-
$permission
string
Required - A permission to be checked. Currently not used.
函数返回值
bool True if the user has proper permissions, false if they do not.
函数位置
File: wp-admin/includes/ms.php.
函数源码
function check_import_new_users( $permission ) {
if ( ! current_user_can( 'manage_network_users' ) ) {
return false;
}
return true;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

