check_import_new_users( string $permission ): bool

In this article

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

Parameters

$permissionstringrequired
A permission to be checked. Currently not used.

Return

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

Source

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

	return true;
}

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.