Forked from andrewlimaza/remove_billing_example.php
Created
October 12, 2020 14:45
-
-
Save sbalci/2f499fb4327eef46cd8d45cfca169d9a to your computer and use it in GitHub Desktop.
Remove 'Billing' from 'Billing Address' title in Paid Memberships Pro.
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
<?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