Filters whether to send an email to the Multisite network administrator when a new site is created. Return false to disable sending the email.
$user_id,
#[\SensitiveParameter]
$password,
$meta = array(
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.
@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.
@param int $user_id User ID.
@param string $password User password.
@param array $meta Optional. Signup meta data. Default empty array.
@return bool
// Utilisation de la fonction wpmu_welcome_user_notification
$result = wpmu_welcome_user_notification($user_id,
#[\SensitiveParameter]
$password,
$meta = array();
if ($result) {
// Votre logique ici
}
Chargement des actualités...