Filter hook 'validate_username'

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

Description

Filters whether the provided username is valid.

Occurrences

Filename Line Number
wp-includes/user.php 2044

Parameters

Type Name Description
bool $valid Whether given username is valid.
string $username Username to check.

PHP Doc

/**
	 * Filters whether the provided username is valid.
	 *
	 * @since 2.0.1
	 *
	 * @param bool   $valid    Whether given username is valid.
	 * @param string $username Username to check.
	 */