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 |
---|---|
3729 | * |
3730 | * @param string $email_text Text in the email. |
3731 | * @param array $new_user_email { |
3732 | * Data relating to the new user email address. |
3733 | * |
3734 | * @type string $hash The secure hash used in the confirmation link URL. |
3735 | * @type string $newemail The proposed new email address. |
3736 | * } |
3737 | */ |
3738 | $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email ); |
3739 |
|
3740 | $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); |
3741 | $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail=' . $hash ) ), $content ); |
3742 | $content = str_replace( '###EMAIL###', $_POST['email'], $content ); |
3743 | $content = str_replace( '###SITENAME###', $sitename, $content ); |
3744 | $content = str_replace( '###SITEURL###', home_url(), $content ); |
3745 |
|
3746 | /* translators: New email address notification email subject. %s: Site title. */ |
3747 | wp_mail( $_POST['email'], sprintf( __( '[%s] Email Change Request' ), $sitename ), $content ); |