wpmu_validate_blog_signup

FUNCTION wp-includes\ms-functions.php (ligne 498) github
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.' ) );

Paramètres

Entrée :
$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

// Utilisation de la fonction wpmu_validate_blog_signup
$result = wpmu_validate_blog_signup($blogname, $blog_title, $user = '');

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...