Created
July 23, 2018 08:28
-
-
Save andrewlimaza/c4a78eed876f36ac10e53b89a219f204 to your computer and use it in GitHub Desktop.
Change 'Not Paying.' to 'Paying.' for Paid Memberships Pro.
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
| <?php | |
| /** | |
| * Changes 'Not Paying.' to 'Paying.' inside Paid Memberships Pro. | |
| * Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function change_not_paying_to_paying_pmpro( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Not Paying.' : | |
| $translated_text = __( 'Paying.', 'paid-memberships-pro' ); | |
| break; | |
| } | |
| return $translated_text; | |
| } | |
| add_filter( 'gettext', 'change_not_paying_to_paying_pmpro', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment