Home / Admin / Customize User Verification Email
Duplicate Snippet

Embed Snippet on Your Site

Customize User Verification Email

Modifies the email sent to customers to verify their accounts.

Code Preview
php
<?php
function jp_customize_verification_email( $message, $user_id ) {
	$user_data = get_userdata( $user_id );
	$url       = edd_get_user_verification_url( $user_id );
	$from_name = edd_get_option( 'from_name', wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES ) );
	$message   = sprintf( __( "Howdy %s,\n\nYour account with %s needs to be verified before you can access your purchase history. <a href='%s'>Click here</a> to verify your account and get access to your purchases.", 'edd' ), $user_data->display_name, $from_name, $url );
	return $message;
}
add_filter( 'edd_user_verification_email_message', 'jp_customize_verification_email', 10, 2 );

Comments

Add a Comment