update_welcome_email

FILTER wp-includes\ms-functions.php (ligne 1712) github
Filters the content of the welcome email sent to the site administrator after site activation. Content should be formatted for transmission via wp_mail().

Paramètres

Entrée :
$welcome_email, $blog_id, $user_id, $password, $title, $meta
Sortie :
@param string $welcome_email Message body of the email.
@param int    $blog_id       Site ID.
@param int    $user_id       User ID of the site administrator.
@param string $password      User password, or "N/A" if the user account is not new.
@param string $title         Site title.
@param array  $meta          Signup meta data. By default, contains the requested privacy setting and lang_id.

Utilisation

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

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

Actualités

Chargement des actualités...