Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change WordPress email sender
/**
* Change wp_mail's from name
*/
function iweb_change_from_name( $name = '' ) {
return get_bloginfo( 'name' );
}
add_filter( 'wp_mail_from_name', 'iweb_change_from_name' );
/**
* Change wp_mail's from email
*/
function iweb_change_from_email( $email = '' ) {
return get_bloginfo( 'admin_email' );
}
add_filter( 'wp_mail_from', 'iweb_change_from_email' );
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.