check_import_new_users

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

Description

check_import_new_users( (string) $permission ); 

Parameters (1)

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

Usage

  1. if ( !function_exists( 'check_import_new_users' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/ms.php'; 
  3.  
  4. // A permission to be checked. Currently not used. 
  5. $permission = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = check_import_new_users($permission); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/ms.php  
  1. function check_import_new_users( $permission ) { 
  2. if ( !is_super_admin() ) 
  3. return false; 
  4. return true;