new_admin_email_content

new_admin_email_content

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.6

apply_filters('new_admin_email_content') is found 1 times:

  • /wp-admin/includes/misc.php line 1526
    	 *     @type string $hash     The secure hash used in the confirmation link URL.
    	 *     @type string $newemail The proposed new site admin email address.
    	 * }
    	 */
    	$content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email );
    
    	$current_user = wp_get_current_user();
    	$content      = str_replace( '###USERNAME###', $current_user->user_login, $content );
    	$content      = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash=' . $hash ) ), $content );
    	$content      = str_replace( '###EMAIL###', $value, $content );
    	$content      = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content );