Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: new_network_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
2740       *
2741       * @param string $email_text      Text in the email.
2742       * @param array  $new_admin_email {
2743       *     Data relating to the new network admin email address.
2744       *
2745       *     @type string $hash     The secure hash used in the confirmation link URL.
2746       *     @type string $newemail The proposed new network admin email address.
2747       * }
2748       */
2749      $content = apply_filters( 'new_network_admin_email_content', $email_text, $new_admin_email );
2750
2751      $current_user = wp_get_current_user();
2752      $content      = str_replace( '###USERNAME###', $current_user->user_login, $content );
2753      $content      = str_replace( '###ADMIN_URL###', esc_url( network_admin_url( 'settings.php?network_admin_hash=' . $hash ) ), $content );
2754      $content      = str_replace( '###EMAIL###', $value, $content );
2755      $content      = str_replace( '###SITENAME###', wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ), $content );
2756      $content      = str_replace( '###SITEURL###', network_home_url(), $content );
2757
2758      wp_mail(