Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: site_admin_email_change_email

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
7400       *         - ###OLD_EMAIL### The old site admin email address.
7401       *         - ###NEW_EMAIL### The new site admin email address.
7402       *         - ###SITENAME###  The name of the site.
7403       *         - ###SITEURL###   The URL to the site.
7404       *     @type string $headers Headers.
7405       * }
7406       * @param string $old_email The old site admin email address.
7407       * @param string $new_email The new site admin email address.
7408       */
7409      $email_change_email = apply_filters( 'site_admin_email_change_email', $email_change_email, $old_email, $new_email );
7410
7411      $email_change_email['message'] = str_replace( '###OLD_EMAIL###', $old_email, $email_change_email['message'] );
7412      $email_change_email['message'] = str_replace( '###NEW_EMAIL###', $new_email, $email_change_email['message'] );
7413      $email_change_email['message'] = str_replace( '###SITENAME###', $site_name, $email_change_email['message'] );
7414      $email_change_email['message'] = str_replace( '###SITEURL###', home_url(), $email_change_email['message'] );
7415
7416      wp_mail(
7417           $email_change_email['to'],
7418           sprintf(