Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: new_site_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
1782       *
1783       *     @type string $to      The email address of the recipient.
1784       *     @type string $subject The subject of the email.
1785       *     @type string $message The content of the email.
1786       *     @type string $headers Headers.
1787       * }
1788       * @param WP_Site $site         Site object of the new site.
1789       * @param WP_User $user         User object of the administrator of the new site.
1790       */
1791      $new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
1792
1793      wp_mail(
1794           $new_site_email['to'],
1795           wp_specialchars_decode( $new_site_email['subject'] ),
1796           $new_site_email['message'],
1797           $new_site_email['headers']
1798      );
1799
1800      if ( $switched_locale ) {