new_admin_email_content

new_admin_email_content

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('new_admin_email_content') is found 1 times:

  • /wp-admin/includes/misc.php line 1526
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    1529
    1530
    1531
    1532
    *     @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 );