Forked from andrewlimaza/my_pmpro_ipn_check_receiver_email.php
Created
August 31, 2021 17:09
-
-
Save ideadude/0816b5f44acc326904d2e8bb2834fbed to your computer and use it in GitHub Desktop.
Allow other receiver/business email addresses for PMPro IPN Messages.
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 | |
/** | |
* Allow other business email addresses for PMPro IPN Messages. | |
* To add this code to your site you may follow this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_ipn_check_receiver_email($check, $email) { | |
if ( in_array( '[email protected]', $email ) ) { //change email here to the old email | |
$check = true; | |
} | |
return $check; | |
} | |
add_filter('pmpro_ipn_check_receiver_email', 'my_pmpro_ipn_check_receiver_email', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment