Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Last active June 3, 2016 15:03
Show Gist options
  • Save MaxySpark/f4946575de1e7af3a6ab557d389946bd to your computer and use it in GitHub Desktop.
Save MaxySpark/f4946575de1e7af3a6ab557d389946bd to your computer and use it in GitHub Desktop.
Its a bit of odd isn’t? Do you have any email address created as wordpress@yourwebsite.com? or Is this email wordpress@yourwebsite.com really exists? Well, we can change up these names and email address easily using the following snippet. Simply add this code on your themes functions.php Don’t forget to change the name and email address in this …
add_filter( 'wp_mail_from', 'wp4_new_mail_from' );
function wp4_new_mail_from( $old ) {
return 'email@wesbite.com'; // Edit it with your official email address
}
add_filter('wp_mail_from_name', 'wp4_new_mail_from_name');
function wp4_new_mail_from_name( $old ) {
return 'Webmaster'; // Edit it with your official name
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment