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 |
---|---|
399 | * ###EMAIL### The new email. |
400 | * ###SITENAME### The name of the site. |
401 | * ###SITEURL### The URL to the site. |
402 | * |
403 | * @since MU |
404 | * |
405 | * @param string $email_text Text in the email. |
406 | * @param string $new_user_email New user email that the current user has changed to. |
407 | */ |
408 | $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email ); |
409 |
|
410 | $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); |
411 | $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail=' . $hash ) ), $content ); |
412 | $content = str_replace( '###EMAIL###', $_POST['email'], $content); |
413 | $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ), $content ); |
414 | $content = str_replace( '###SITEURL###', network_home_url(), $content ); |
415 |
|
416 | wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ), $content ); |
417 | $_POST['email'] = $current_user->user_email; |