-
-
Save gspice/4eb49d3043ad2ba1a5c67cda6a48614a to your computer and use it in GitHub Desktop.
AffiliateWP - Send the affiliate registration admin email to different email address, or multiple email addresses.
This file contains 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 | |
/** | |
* Send admin notification to a different email address | |
*/ | |
function affwp_custom_registration_admin_email( $email ) { | |
// add the email here | |
$email = '[email protected]'; | |
return $email; | |
} | |
add_filter( 'affwp_registration_admin_email', 'affwp_custom_registration_admin_email' ); |
This file contains 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 | |
/** | |
* Send admin notification to multiple email addresses | |
*/ | |
function affwp_custom_registration_admin_email( $email ) { | |
// add the emails to the array here | |
$email = array( '[email protected]', '[email protected]' ); | |
return $email; | |
} | |
add_filter( 'affwp_registration_admin_email', 'affwp_custom_registration_admin_email' ); |
This file contains 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 | |
/** | |
* Send admin notification to the admin, as well as other email addresses | |
*/ | |
function affwp_custom_registration_admin_email( $email ) { | |
// add the emails to the array here | |
$email = array( get_option( 'admin_email' ), '[email protected]', '[email protected]' ); | |
return $email; | |
} | |
add_filter( 'affwp_registration_admin_email', 'affwp_custom_registration_admin_email' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment