Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created December 6, 2013 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strangerstudios/7828284 to your computer and use it in GitHub Desktop.
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.
/*
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