wpseek.com
A WordPress-centric search engine for devs and theme authors



check_import_new_users › WordPress Function

Since3.0.0
Deprecatedn/a
check_import_new_users ( $permission )
Parameters:
  • (string) $permission A permission to be checked. Currently not used.
    Required: Yes
Returns:
  • (bool) True if the user has proper permissions, false if they do not.
Defined at:
Codex:

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



Source

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

	return true;
}