Uma área de pesquisa sobre o WordPress para devs e autores do tema



check_import_new_users ›

Desde3.0.0
Obsoleton/a
check_import_new_users ( $permission )
Parâmetros:
  • (string) $permission A permission to be checked. Currently not used.
    Required: Yes
Retorna:
  • (bool) True if the user has proper permissions, false if they do not.
Definido em:
Codex:

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



Fonte

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

	return true;
}