check_import_new_users()
最后更新于:2021-11-25 20:30:00
check_import_new_users( string$permission)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.
源文件
文件: gc-admin/includes/ms.php
function check_import_new_users( $permission ) {
if ( ! current_user_can( 'manage_network_users' ) ) {
return false;
}
return true;
}