wpmu_welcome_user_notification

FUNCTION wp-includes\ms-functions.php (ligne 1771) 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 :
$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

// Utilisation de la fonction wpmu_welcome_user_notification
$result = wpmu_welcome_user_notification($user_id,
	#[\SensitiveParameter]
	$password,
	$meta = array();

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

Actualités

Chargement des actualités...