X

Customize Easy Digital Downloads User Verification Emails

The snippet lets you customize Easy Digital Downloads user verification emails you send out to your customers. Simply copy the snippet to your functions.php file.

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  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!