validate_username WordPress Filter Hook

The validate_username Wordpress hook is used to check whether a username is valid. This hook is called when a user tries to register or login.

apply_filters( 'validate_username', bool $valid, string $username ) #

Filters whether the provided username is valid.


Parameters

$valid

(bool)Whether given username is valid.

$username

(string)Username to check.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More