Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Allow other receiver/business email addresses for PMPro IPN Messages.
<?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( 'bbb@gmail.com', $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