Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Function to change email address
function wpb_sender_email( $original_email_address ) {
return 'ADMIN EMAIL';
}
// Function to change sender name
function wpb_sender_name( $original_email_from ) {
return 'YOUR COMPANY NAME';
}
// Hooking up our functions to WordPress filters
add_filter( 'wp_mail_from', 'wpb_sender_email' );
add_filter( 'wp_mail_from_name', 'wpb_sender_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.