Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JarrydLong/c0e05acb300fee70ab371057ab5a328e to your computer and use it in GitHub Desktop.
Save JarrydLong/c0e05acb300fee70ab371057ab5a328e to your computer and use it in GitHub Desktop.
Change the We Accept Checkout Text for Paid Memberships Pro.
<?php
/**
* Change the "We Accept..." text on the checkout page.
* Follow this guide to add custom code to your membership site - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function change_my_pmpro_account_text( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'We accept all major credit cards' :
$translated_text = __( 'We accept all major credit and debit cards', 'paid-memberships-pro' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'change_my_pmpro_account_text', 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment