Filter hook 'username_exists'

in WP Core File wp-includes/user.php at line 1988

Description

Filters whether the given username exists.

Occurrences

Filename Line Number
wp-includes/user.php 1988

Parameters

Type Name Description
int|false $user_id The user ID associated with the username, or false if the username does not exist.
string $username The username to check for existence.

PHP Doc

/**
	 * Filters whether the given username exists.
	 *
	 * @since 4.9.0
	 *
	 * @param int|false $user_id  The user ID associated with the username,
	 *                            or false if the username does not exist.
	 * @param string    $username The username to check for existence.
	 */