Re: How can I customize the last activation email going to the user?
Hi life2000
You need to write a filter to hook into the update_welcome_user_email action, like so:
add_filter('update_welcome_user_email', 'filter_newuseremail_dm', 1, 4);
function filter_newuseremail_dm($welcome_email, $user_id, $password, $meta) {
return "body text of your email";
}
If you want to send an email formatted with HTML, you also need to do this:
add_filter('wp_mail_content_type', 'newuseremail_content_type_dm', 1);
function newuseremail_content_type_dm() {
return 'text/html';
}