password_change_email

FILTER wp-includes\user.php (ligne 2807) github
Filters the contents of the email sent when the user's password is changed.

Paramètres

Entrée :
$pass_change_email, $user, $userdata
Sortie :
@param array $pass_change_email {
@param array $user     The original user array.
@param array $userdata The updated user array.

Utilisation

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

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

Actualités

Chargement des actualités...