password_change_email

password_change_email

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('password_change_email') is found 1 times:

  • /wp-includes/user.php line 2704
    		 * }
    		 * @param array $user     The original user array.
    		 * @param array $userdata The updated user array.
    		 */
    		$pass_change_email = apply_filters( 'password_change_email', $pass_change_email, $user, $userdata );
    
    		$pass_change_email['message'] = str_replace( '###USERNAME###', $user['user_login'], $pass_change_email['message'] );
    		$pass_change_email['message'] = str_replace( '###ADMIN_EMAIL###', get_option( 'admin_email' ), $pass_change_email['message'] );
    		$pass_change_email['message'] = str_replace( '###EMAIL###', $user['user_email'], $pass_change_email['message'] );
    		$pass_change_email['message'] = str_replace( '###SITENAME###', $blog_name, $pass_change_email['message'] );
    		$pass_change_email['message'] = str_replace( '###SITEURL###', home_url(), $pass_change_email['message'] );