Skip to content

Instantly share code, notes, and snippets.

@ovizii
Created April 19, 2014 09:35
Show Gist options
  • Save ovizii/11079282 to your computer and use it in GitHub Desktop.
Save ovizii/11079282 to your computer and use it in GitHub Desktop.
Change email/user for WP emails
add_filter( 'wp_mail_from', 'my_mail_from' );
function my_mail_from( $email )
{
return "change-this-to-your-email-address";
}
add_filter( 'wp_mail_from_name', 'my_mail_from_name' );
function my_mail_from_name( $name )
{
return "My Name";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment