Created
February 17, 2015 09:43
-
-
Save schalkburger/759eaf5e3be365dc9242 to your computer and use it in GitHub Desktop.
Wordpress change from email details
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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