WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/check import new users

Description

This function is a conditional tag to check if the current user has the required permissions to import new users.

Usage

<?php check_import_new_users(); ?>

Parameters

This function does not accept any parameters.

Returns

(boolean) 
Whether the current user can import new users.

Examples

<?php

if ( check_import_new_users() ) {
    // We can import users.
} else {
    // This user doesn't have the required permissions.
}

?>

Notes

Source File

check_import_new_users() is located in wp-admin/includes/ms.php.

Change Log

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.