Forked from andrewlimaza/change-we-accept-checkout-text.php
Last active
November 7, 2022 08:17
-
-
Save JarrydLong/c0e05acb300fee70ab371057ab5a328e to your computer and use it in GitHub Desktop.
Change the We Accept Checkout Text for 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 | |
/** | |
* 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