Skip to content

Instantly share code, notes, and snippets.

@samsargent
Last active December 16, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsargent/5464513 to your computer and use it in GitHub Desktop.
Save samsargent/5464513 to your computer and use it in GitHub Desktop.
Wordpress: Change default from name & email filters
<?php
function my_wp_mail_from_name($name) {
return 'From Name';
}
//email from email function
function my_wp_mail_from($content_type) {
return 'from@emailaddress.com.au';
}
add_filter('wp_mail_from','my_wp_mail_from');
add_filter('wp_mail_from_name','my_wp_mail_from_name');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment