This filter is documented in wp-includes/user.php $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); if ( in_array( strtolower( $user_name ), array_map( 'strtolower', $illegal_logins ), true ) ) { $errors->add( 'user_name', __( 'Sorry, that username is not allowed.' ) );
$blogname, $blog_title, $user = ''
Sortie :
@param array $result {
@param string $blogname The site name provided by the user. Must be unique.
@param string $blog_title The site title provided by the user.
@param WP_User|string $user Optional. The user object to check against the new site name.
@return array {
// Utilisation de la fonction wpmu_validate_blog_signup
$result = wpmu_validate_blog_signup($blogname, $blog_title, $user = '');
if ($result) {
// Votre logique ici
}
Chargement des actualités...