new_site_email

FILTER wp-includes\ms-functions.php (ligne 1847) github
Filters the content of the email sent to the Multisite network administrator when a new site is created. Content should be formatted for transmission via wp_mail().

Paramètres

Entrée :
$new_site_email, $site, $user
Sortie :
@param array $new_site_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 'new_site_email'
add_filter('new_site_email', 'ma_fonction_filtre', 10, 1);

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

Actualités

Chargement des actualités...