Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: new_admin_email_content

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
1330       *
1331       * @param string $email_text      Text in the email.
1332       * @param array  $new_admin_email {
1333       *     Data relating to the new site admin email address.
1334       *
1335       *     @type string $hash     The secure hash used in the confirmation link URL.
1336       *     @type string $newemail The proposed new site admin email address.
1337       * }
1338       */
1339      $content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email );
1340
1341      $current_user = wp_get_current_user();
1342      $content      = str_replace( '###USERNAME###', $current_user->user_login, $content );
1343      $content      = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash=' . $hash ) ), $content );
1344      $content      = str_replace( '###EMAIL###', $value, $content );
1345      $content      = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content );
1346      $content      = str_replace( '###SITEURL###', home_url(), $content );
1347
1348      wp_mail(