Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




validate_username [ WordPress Function ]

validate_username ( $username )
Parameters:
  • (string) $username Username.
Uses:
Returns:
  • (bool) Whether username given is valid
Defined at:



Checks whether an username is valid.

Source


<?php
function validate_username$username ) {
    
$sanitized sanitize_user$usernametrue );
    
$valid = ( $sanitized == $username );
    return 
apply_filters'validate_username'$valid$username );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics