ControlledChaos of Controlled Chaos Design
7/20/2017 - 4:32 PM

Change the WordPress notification email name and address.

Change the WordPress notification email name and address.

<?php

// Change email address
function ccd_wp_sender_email( $original_email_address ) {
  return 'greg@ccdzine.com';
}
add_filter( 'wp_mail_from', 'ccd_wp_sender_email' );

// Change sender name
function ccd_wp_sender_name( $original_email_from ) {
  return 'Greg Sweet';
}
add_filter( 'wp_mail_from_name', 'ccd_wp_sender_name' );

?>

Change Notification Email

WordPress Snippet