-
-
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
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
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
Thank you so much for solution