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 |
---|---|
1510 | * |
1511 | * @param string $email_text Text in the email. |
1512 | * @param array $new_admin_email { |
1513 | * Data relating to the new site admin email address. |
1514 | * |
1515 | * @type string $hash The secure hash used in the confirmation link URL. |
1516 | * @type string $newemail The proposed new site admin email address. |
1517 | * } |
1518 | */ |
1519 | $content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email ); |
1520 |
|
1521 | $current_user = wp_get_current_user(); |
1522 | $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); |
1523 | $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash=' . $hash ) ), $content ); |
1524 | $content = str_replace( '###EMAIL###', $value, $content ); |
1525 | $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content ); |
1526 | $content = str_replace( '###SITEURL###', home_url(), $content ); |
1527 |
|
1528 | if ( '' !== get_option( 'blogname' ) ) { |