new_user_email_content

new_user_email_content

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

See hook in core

Displaying hooks found in version: wordpress-6.6

apply_filters('new_user_email_content') is found 1 times:

  • /wp-includes/user.php line 3774
    		 *     @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 );