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
1794       *
1795       *     @type string $to      The email address of the recipient.
1796       *     @type string $subject The subject of the email.
1797       *     @type string $message The content of the email.
1798       *     @type string $headers Headers.
1799       * }
1800       * @param WP_Site $site         Site object of the new site.
1801       * @param WP_User $user         User object of the administrator of the new site.
1802       */
1803      $new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user );
1804
1805      wp_mail(
1806           $new_site_email['to'],
1807           wp_specialchars_decode( $new_site_email['subject'] ),
1808           $new_site_email['message'],
1809           $new_site_email['headers']
1810      );
1811
1812      if ( $switched_locale ) {