check_import_new_users

Advertisement

Summery Summery

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

Syntax Syntax

check_import_new_users( string $permission )

Parameters Parameters

$permission

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

Return Return

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

Source Source

File: wp-admin/includes/ms.php

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

	return true;
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply