check_import_new_users

The timeline below displays how wordpress function check_import_new_users has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.8

/**
 * Checks if the current user has permissions to import new users.
 *
 * @since 3.0.0
 *
 * @param string $permission A permission to be checked. Currently not used.
 * @return bool True if the user has proper permissions, false if they do not.
 */
function check_import_new_users($permission)
{
    if (!current_user_can('manage_network_users')) {
        return false;
    }
    return true;
}

WordPress Version: 4.1

/**
 * Checks if the current user has permissions to import new users.
 *
 * @since 3.0.0
 *
 * @param string $permission A permission to be checked. Currently not used.
 * @return bool True if the user has proper permissions, false if they do not.
 */
function check_import_new_users($permission)
{
    if (!is_super_admin()) {
        return false;
    }
    return true;
}

WordPress Version: 3.7

function check_import_new_users($permission)
{
    if (!is_super_admin()) {
        return false;
    }
    return true;
}