validate_username

validate_username

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('validate_username') is found 1 times:

  • /wp-includes/user.php line 2056
    2052
    2053
    2054
    2055
    2056
    2057
    2058
    2059
    2060
    2061
    2062
         *
         * @param bool   $valid    Whether given username is valid.
         * @param string $username Username to check.
         */
        return apply_filters( 'validate_username', $valid, $username );
    }
     
    /**
     * Inserts a user into the database.
     *
     * Most of the `$userdata` array fields have filters associated with the values. Exceptions are