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 |
|---|---|
| 8121 | * - ###OLD_EMAIL### The old site admin email address. |
| 8122 | * - ###NEW_EMAIL### The new site admin email address. |
| 8123 | * - ###SITENAME### The name of the site. |
| 8124 | * - ###SITEURL### The URL to the site. |
| 8125 | * @type string $headers Headers. |
| 8126 | * } |
| 8127 | * @param string $old_email The old site admin email address. |
| 8128 | * @param string $new_email The new site admin email address. |
| 8129 | */ |
| 8130 | $email_change_email = apply_filters( 'site_admin_email_change_email', $email_change_email, $old_email, $new_email ); |
| 8131 | |
| 8132 | $email_change_email['message'] = str_replace( '###OLD_EMAIL###', $old_email, $email_change_email['message'] ); |
| 8133 | $email_change_email['message'] = str_replace( '###NEW_EMAIL###', $new_email, $email_change_email['message'] ); |
| 8134 | $email_change_email['message'] = str_replace( '###SITENAME###', $site_name, $email_change_email['message'] ); |
| 8135 | $email_change_email['message'] = str_replace( '###SITEURL###', home_url(), $email_change_email['message'] ); |
| 8136 | |
| 8137 | wp_mail( |
| 8138 | $email_change_email['to'], |
| 8139 | sprintf( |