Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eyecandy91/6a21625cf58362e2eaf64496743c9b28 to your computer and use it in GitHub Desktop.
Save eyecandy91/6a21625cf58362e2eaf64496743c9b28 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);
@tanzilhuda
Copy link

Thank you so much for solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment