check_import_new_users() WordPress Function

The check_import_new_users() function is used to check if there are any new users that have been imported into WordPress. This function will return an array of new user objects if there are any, and an empty array if there are none.

check_import_new_users( string $permission ) #

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


Parameters

$permission

(string)(Required)A permission to be checked. Currently not used.


Top ↑

Return

(bool) True if the user has proper permissions, false if they do not.


Top ↑

Source

File: wp-admin/includes/ms.php

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

	return true;
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.