domain_exists

FUNCTION wp-includes\ms-functions.php (ligne 1557) github
Filters the message body of the new user activation email sent to the network administrator.

Paramètres

Entrée :
$domain, $path, $network_id = 1
Sortie :
@param string  $msg  Email body.
@param WP_User $user WP_User instance of the new user.
@param string $domain     The domain to be checked.
@param string $path       The path to be checked.
@param int    $network_id Optional. Network ID. Only relevant on multi-network installations.
@return int|null The site ID if the site name exists, null otherwise.

Utilisation

// Utilisation de la fonction domain_exists
$result = domain_exists($domain, $path, $network_id = 1);

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

Actualités

Chargement des actualités...