Last active
August 3, 2021 19:49
-
-
Save strangerstudios/117afb8d03728e940cbf to your computer and use it in GitHub Desktop.
Customizations to remove all mention of payments, fees, price, etc.
This file contains hidden or 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
/* | |
Customizations to remove all mention of payments/fees/price for a 100% no-charge membership site. | |
*/ | |
define("PMPRO_DEFAULT_LEVEL", "1"); | |
function my_pmpro_level_cost_text($text, $level) | |
{ | |
if(pmpro_isLevelFree($level)) | |
return ""; | |
else | |
return $text; | |
} | |
add_filter("pmpro_level_cost_text", "my_pmpro_level_cost_text", 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This recipe is included in the blog post on "Remove All Mention of Price for a 100% No-Charge Membership Site" at Paid Memberships Pro here: https://www.paidmembershipspro.com/remove-all-mention-of-price-for-a-100-no-charge-membership-site/