new_user_email_content

new_user_email_content

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('new_user_email_content') is found 1 times:

  • /wp-includes/user.php line 3794
    3790
    3791
    3792
    3793
    3794
    3795
    3796
    3797
    3798
    3799
    3800
    *     @type string $hash     The secure hash used in the confirmation link URL.
     *     @type string $newemail The proposed new email address.
     * }
     */
    $content = apply_filters( 'new_user_email_content', $email_text, $new_user_email );
     
    $content = str_replace( '###USERNAME###', $current_user->user_login, $content );
    $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'profile.php?newuseremail=' . $hash ) ), $content );
    $content = str_replace( '###EMAIL###', $_POST['email'], $content );
    $content = str_replace( '###SITENAME###', $sitename, $content );
    $content = str_replace( '###SITEURL###', home_url(), $content );