Skip to content

Instantly share code, notes, and snippets.

@schalkburger
Created February 17, 2015 09:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schalkburger/759eaf5e3be365dc9242 to your computer and use it in GitHub Desktop.
Save schalkburger/759eaf5e3be365dc9242 to your computer and use it in GitHub Desktop.
Wordpress change from email details
<?php
add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from( $email )
{
return 'username@example.com';
}
add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function my_mail_from_name( $name )
{
return 'John Doe';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment