WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1787 | * |
| 1788 | * @type string $to The email address of the recipient. |
| 1789 | * @type string $subject The subject of the email. |
| 1790 | * @type string $message The content of the email. |
| 1791 | * @type string $headers Headers. |
| 1792 | * } |
| 1793 | * @param WP_Site $site Site object of the new site. |
| 1794 | * @param WP_User $user User object of the administrator of the new site. |
| 1795 | */ |
| 1796 | $new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user ); |
| 1797 | |
| 1798 | wp_mail( |
| 1799 | $new_site_email['to'], |
| 1800 | wp_specialchars_decode( $new_site_email['subject'] ), |
| 1801 | $new_site_email['message'], |
| 1802 | $new_site_email['headers'] |
| 1803 | ); |
| 1804 | |
| 1805 | if ( $switched_locale ) { |