Skip to content

Instantly share code, notes, and snippets.

@samsargent samsargent/gist:5464513
Last active Dec 16, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.