Created
December 22, 2020 12:24
-
-
Save chavesm/741f906ce3b4d030943fa39e805b5929 to your computer and use it in GitHub Desktop.
PHP filter hooks to supply a custom from email address and name for MonsterInsights email summary reports.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** MonsterInsights Email Hooks */ | |
// Sender email address filter hook. | |
function my_custom_sender_email_address( $original_sender_email_address ) { | |
return 'YOURSENDEREMAILADDRESS'; | |
} | |
add_filter( 'monsterinsights_email_from_address', 'my_custom_sender_email_address' ); | |
// Sender name filter hook. | |
function my_custom_sender_name( $original_sender_name ) { | |
return 'YOURSENDERNAME'; | |
} | |
add_filter( 'monsterinsights_email_from_name', 'my_custom_sender_name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment