Uses
Uses | Description |
---|---|
wp-includes/capabilities.php: current_user_can() | Returns whether the current user has the specified capability. |
Checks if the current user has permissions to import new users.
(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. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/check_import_new_users