Paid Memberships Pro - Custom Level Cost Text Add On WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Modify the default level cost text per level, per discount code, or globally via advanced settings when using Paid Memberships Pro.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/strangerstudios/pmpro-level-cost-text/archive/refs/heads/dev.zipModify the default level cost text per level, per discount code, or globally via advanced settings.
Description
This plugin adds a "level cost text" field to Membership Levels and Discount Codes, allowing you to override PMPro's default level cost text. You can also modify the cost text globally via Advanced Settings.
On the "Edit Membership Level" or "Edit Discount Code" page, you can override the default level cost using the available placeholders or custom text. On the Memberships > Advanced Settings admin page, you can manage the global rules for all generated membership level cost text.
Please use with care as sometimes the level cost text is the only way a user will know how much their credit card is being charged.
This plugin requires Paid Memberships Pro.
Installation
- Upload the
pmpro-level-cost-textdirectory to the/wp-content/plugins/directory of your site. - Activate the plugin through the 'Plugins' menu in WordPress.
- Edit a Membership Level, Discount Code or the Memberships > Advanced Settings page to modify generated level cost text.
Changelog
0.4.4 - 2026-06-30
- ENHANCEMENT: Applied the Level Cost Text format settings (hide decimals, abbreviate periods, etc.) to the individual price and period fields output by the
[pmpro_membership_level]shortcode, so they now match thelevel_costfield. #50 (@kimcoleman)
0.4.3 - 2026-05-01
- ENHANCEMENT: Updated the Custom Level Cost Text settings on the Edit Level page with the modern admin styling and a link to the Custom Level Cost Text Add On documentation. #47 (@kimcoleman)
- BUG FIX: Fixed an issue where Custom Level Cost Text set on a discount code was missing from checkout emails when using Stripe Checkout, the checkout block, or other contexts that use the
pmpro_discount_coderequest key. #48 (@flintfromthebasement)
0.4.2 - 2024-02-13
- BUG FIX: Fixed an issue where one-time payments would not hide decimals.
- BUG FIX: Fixed an issue when getting the custom cost text for a level when the $level_id wasn't an integer.
- REFACTOR: Moved from pmpro_getOption to get_option for settings.
0.4.1 - 2023-02-14
- BUG FIX: Fixed bug with saving custom level cost text on levels for a Discount Code.
0.4 - 2023-01-12
- ENHANCEMENT: Hide the expiration text when Custom Level Cost Text is used for a level. Give full control to the custom text.
- ENHANCEMENT: General improvements to sanitization and escaping of text fields/values.
- BUG FIX/ENHANCEMENT: Improved logic for removing decimal values.
- BUG FIX: Fixed an issue when setting .00 to "Free" would incorrectly change the level cost text to "Free" when the level cost was not 0.00 (@mircobabini).
- BUG FIX: Fixed a fatal error for plugin row meta. This would sometimes fatal error on plugin activation for certain PHP versions/sites.
.3.2
- BUG FIX: Didn't display billing amount, initial payment and trial amount values correctly.
- BUG FIX: Better handling of non-US currencies.
- BUG FIX: Fixes issue where lots of 0's can show up after the decimal when PMPro 2.0.2 is active.
.3.1
- SECURITY: Better sanitizing of the level cost text fields.
- BUG/ENHANCEMENT: Fixed styling of the variable references shown on the edit discount code page.
.3
- ENHANCEMENT: Added settings to the Memberships > Advanced Settings page to globally override level cost text.
- ENHANCEMENT: Added variables to be used in custom level cost text fields.
.2
- Adds custom level cost text field to edit membership level page as well as edit discount code page.
Releases
6 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.