password_change_email

Advertisement

Summery Summery

Filters the contents of the email sent when the user’s password is changed.

Syntax Syntax

apply_filters( 'password_change_email', array $pass_change_email, array $user, array $userdata )

Parameters Parameters

$pass_change_email

Used to build wp_mail().

  • 'to'
    (string) The intended recipients. Add emails in a comma separated string.
  • 'subject'
    (string) The subject of the email.
  • 'message'
    (string) The content of the email. The following strings have a special meaning and will get replaced dynamically: - ###USERNAME### The current user's username. - ###ADMIN_EMAIL### The admin email in case this was unexpected. - ###EMAIL### The user's email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site.
  • 'headers'
    (string) Headers. Add headers in a newline (rn) separated string.

$user

The original user array.

$userdata

The updated user array.

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply