Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sbalci/2f499fb4327eef46cd8d45cfca169d9a to your computer and use it in GitHub Desktop.
Save sbalci/2f499fb4327eef46cd8d45cfca169d9a to your computer and use it in GitHub Desktop.
Remove 'Billing' from 'Billing Address' title in Paid Memberships Pro.
<?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