Created
June 28, 2018 12:45
-
-
Save kimcoleman/a8ecf99811397aa76cf0acb9caa06a98 to your computer and use it in GitHub Desktop.
The gist below disables the user notification sent by the Series Add On for Paid Memberships Pro.
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
<?php | |
/** | |
* pmpro_disable_series_new_content_email The gist below disables the user notification sent by the Series Add On for Paid Memberships Pro. | |
* | |
* Add this code to your PMPro Customizations Plugin | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* | |
*/ | |
function pmpro_disable_series_new_content_email( $recipient, $email ) { | |
if( $email->template == 'new_content' ) { | |
$recipient = NULL; | |
} | |
return $recipient; | |
} | |
add_filter( 'pmpro_email_recipient', 'pmpro_disable_series_new_content_email', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment