Sunday, December 8, 2013

Wordpress change registration email from wordpress@domainname.com to custom email.

On function.php file of current theme place follownig code at last

function change_from_email_name()

$message = get_option(‘blogname’);

return $message;


add_filter(‘wp_mail_from_name’, ‘change_from_email_name’);

//

// changes email from default “wordpress@yourdomain.com”

//

function change_from_email()

$message = get_option(‘admin_email’);

return $message;


add_filter(‘wp_mail_from’, ‘change_from_email’);


Wordpress change registration email from wordpress@domainname.com to custom email.

No comments:

Post a Comment

Please mention your comments.......