Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_new_user_notification_email_admin

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
2014                 *
2015                 *     @type string $to      The intended recipient - site admin email address.
2016                 *     @type string $subject The subject of the email.
2017                 *     @type string $message The body of the email.
2018                 *     @type string $headers The headers of the email.
2019                 * }
2020                 * @param WP_User $user     User object for new user.
2021                 * @param string  $blogname The site title.
2022                 */
2023                $wp_new_user_notification_email_admin = apply_filters( 'wp_new_user_notification_email_admin', $wp_new_user_notification_email_admin, $user, $blogname );
2024
2025                wp_mail(
2026                     $wp_new_user_notification_email_admin['to'],
2027                     wp_specialchars_decode( sprintf( $wp_new_user_notification_email_admin['subject'], $blogname ) ),
2028                     $wp_new_user_notification_email_admin['message'],
2029                     $wp_new_user_notification_email_admin['headers']
2030                );
2031
2032                if ( $switched_locale ) {