Created
June 12, 2017 07:48
-
-
Save andrewlimaza/caa6b3c61757f26f86008786c32c2789 to your computer and use it in GitHub Desktop.
Remove 'Billing' from 'Billing Address' title in 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 | |
| /** | |
| * Copy the function below into your PMPro Customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| * This function uses the gettext filter which will change all text occurences of Billing Address to Address in Paid Memberships Pro. | |
| */ | |
| function change_text_billing_pmpro( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Billing Address' : | |
| $translated_text = __( 'Address', 'paid-memberships-pro' ); | |
| break; | |
| } | |
| return $translated_text; | |
| } | |
| add_filter( 'gettext', 'change_text_billing_pmpro', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment