send_new_site_email

FILTER wp-includes\ms-functions.php (ligne 1782) github
Filters whether to send an email to the Multisite network administrator when a new site is created. Return false to disable sending the email.

Paramètres

Entrée :
true, $site, $user
Sortie :
@param bool    $send Whether to send the email.
@param WP_Site $site Site object of the new site.
@param WP_User $user User object of the administrator of the new site.

Utilisation

// Modifier la valeur avec le filtre 'send_new_site_email'
add_filter('send_new_site_email', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(true) {
    // Modifier la valeur
    return true;
}

Actualités

Chargement des actualités...