Skip to content

Instantly share code, notes, and snippets.

@travislima
Last active January 24, 2024 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save travislima/012893d789e57b5055bbc1570753ebf6 to your computer and use it in GitHub Desktop.
Save travislima/012893d789e57b5055bbc1570753ebf6 to your computer and use it in GitHub Desktop.
Change "Pay by Check" to "Pay by Cheque or Bank Transfer"
<?php
/**
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
* A simple gist that changes "Pay by Check" to "Pay by Cheque or Bank Transfer:".
* Copy the code below into your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmpro_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Pay by Check' :
$translated_text = __( 'Pay by Cheque or Bank Transfer', 'paid-memberships-pro' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_pmpro_text_strings', 20, 3 );
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Change “Pay by Check” wording to open up more payment options for members." at Paid Memberships Pro here: https://www.paidmembershipspro.com/change-pay-by-check-wording-to-open-up-more-payment-options-for-members/

@cremigerhonig
Copy link

unfortunately its not working, i put it into my snipped but it doesn´t change anything

@kimcoleman
Copy link

This recipe will no longer with with Pay By Check Add On v.0.12 or higher. We will post an updated the recipe here: https://www.paidmembershipspro.com/change-pay-by-check-wording-to-open-up-more-payment-options-for-members/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment