wppaste
WordPress

apply_filters( 'wp_password_change_notification_email', array $wp_password_change_notification_email, WP_User $user, string $blogname )

Since
4.9.0
Filters the contents of the password change notification email sent to the site admin.

Compatibility

WordPress
since 4.9.0
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

Parameters

$wp_password_change_notification_emailarray
{ Used to build wp_mail().
@type string $to The intended recipient - site admin email address.
@type string $subject The subject of the email.
@type string $message The body of the email.
@type string $headers The headers of the email.
}
  • $tostring

    The intended recipient - site admin email address.
  • $subjectstring

    The subject of the email.
  • $messagestring

    The body of the email.
  • $headersstring

    The headers of the email.
$userWP_User
User object for user whose password was changed.
$blognamestring
The site title.

Where this hook fires · 1

  • wp-includes/pluggable.php:2120wp_password_change_notification()

Source code

			 *     @type string $message The body of the email.			 *     @type string $headers The headers of the email.			 * }			 * @param WP_User $user     User object for user whose password was changed.			 * @param string  $blogname The site title.			 */			$wp_password_change_notification_email = apply_filters( 'wp_password_change_notification_email', $wp_password_change_notification_email, $user, $blogname ); 			wp_mail(				$wp_password_change_notification_email['to'],				wp_specialchars_decode( sprintf( $wp_password_change_notification_email['subject'], $blogname ) ),				$wp_password_change_notification_email['message'],				$wp_password_change_notification_email['headers']

Changelog

Introduced in 4.9.0. Unchanged from 6.7.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.