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 |
|---|---|
| 1838 | * |
| 1839 | * @type string $to The email address of the recipient. |
| 1840 | * @type string $subject The subject of the email. |
| 1841 | * @type string $message The content of the email. |
| 1842 | * @type string $headers Headers. |
| 1843 | * } |
| 1844 | * @param WP_Site $site Site object of the new site. |
| 1845 | * @param WP_User $user User object of the administrator of the new site. |
| 1846 | */ |
| 1847 | $new_site_email = apply_filters( 'new_site_email', $new_site_email, $site, $user ); |
| 1848 | |
| 1849 | wp_mail( |
| 1850 | $new_site_email['to'], |
| 1851 | wp_specialchars_decode( $new_site_email['subject'] ), |
| 1852 | $new_site_email['message'], |
| 1853 | $new_site_email['headers'] |
| 1854 | ); |
| 1855 | |
| 1856 | if ( $switched_locale ) { |