WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2692 | * - ###NEW_EMAIL### The new email address. |
| 2693 | * - ###EMAIL### The old email address. |
| 2694 | * - ###SITENAME### The name of the site. |
| 2695 | * - ###SITEURL### The URL to the site. |
| 2696 | * @type string $headers Headers. |
| 2697 | * } |
| 2698 | * @param array $user The original user array. |
| 2699 | * @param array $userdata The updated user array. |
| 2700 | */ |
| 2701 | $email_change_email = apply_filters( 'email_change_email', $email_change_email, $user, $userdata ); |
| 2702 | |
| 2703 | $email_change_email['message'] = str_replace( '###USERNAME###', $user['user_login'], $email_change_email['message'] ); |
| 2704 | $email_change_email['message'] = str_replace( '###ADMIN_EMAIL###', get_option( 'admin_email' ), $email_change_email['message'] ); |
| 2705 | $email_change_email['message'] = str_replace( '###NEW_EMAIL###', $userdata['user_email'], $email_change_email['message'] ); |
| 2706 | $email_change_email['message'] = str_replace( '###EMAIL###', $user['user_email'], $email_change_email['message'] ); |
| 2707 | $email_change_email['message'] = str_replace( '###SITENAME###', $blog_name, $email_change_email['message'] ); |
| 2708 | $email_change_email['message'] = str_replace( '###SITEURL###', home_url(), $email_change_email['message'] ); |
| 2709 | |
| 2710 | wp_mail( $email_change_email['to'], sprintf( $email_change_email['subject'], $blog_name ), $email_change_email['message'], $email_change_email['headers'] ); |