Forked from strangerstudios/my_pmpro_ipn_check_receiver_email.php
Created
December 8, 2021 16:05
-
-
Save kimwhite/ef7246f4d38de269d9127d4e82cfc535 to your computer and use it in GitHub Desktop.
Allow other receiver/business email addresses for PMPro IPN Messages.
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
function my_pmpro_ipn_check_receiver_email($check, $email) | |
{ | |
if($email == '[email protected]' || 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