Forked from strangerstudios/my_pmpro_ipn_check_receiver_email.php
Last active
August 31, 2021 17:09
-
-
Save andrewlimaza/fe32e71394d570cb8cd8b5960d2c0e4d 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