Skip to content

Instantly share code, notes, and snippets.

@emiliano1991
Last active August 10, 2016 08:54
Show Gist options
  • Save emiliano1991/d344ebee24ad55feb481 to your computer and use it in GitHub Desktop.
Save emiliano1991/d344ebee24ad55feb481 to your computer and use it in GitHub Desktop.
Remove or edit "now." “The price for membership is $0.00 now.” for Membership Levels
function my1_pmpro_level_cost_text($text, $level) {
// is livel is free do nothing
if (pmpro_isLevelFree($level)) {
return "";
// else is different to free do this
} else {
//the full string is : The price for membership is $0.00 now.
$restituisci = str_replace("now.","",$text); // in this case you can remove "now." in the full string
return $restituisci;
}
}
add_filter("pmpro_level_cost_text", "my1_pmpro_level_cost_text", 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment