Created
December 6, 2013 17:00
-
-
Save strangerstudios/7828284 to your computer and use it in GitHub Desktop.
Remove the "this membership level is free" language from PMPro member change emails. Any recurring subscription will still be deleted (unless you are doing something else), but that language was confusing in some cases. Add this to a custom plugin or your active theme's functions.php.
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
/* | |
Remove the "This membership is free" text from membership change emails. | |
*/ | |
function nofree_pmpro_email_data($email_data, $email) | |
{ | |
if(!empty($email_data['membership_change'])) | |
$email_data["membership_change"] = str_replace(". This membership is free", "", $email_data["membership_change"]); | |
return $email_data; | |
} | |
add_filter('pmpro_email_data', 'nofree_pmpro_email_data', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment