Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save michaelbeil/baf6e670bbcdc762d7c469bb014fc10a to your computer and use it in GitHub Desktop.
Save michaelbeil/baf6e670bbcdc762d7c469bb014fc10a to your computer and use it in GitHub Desktop.
Change "Pay by Check" to "Pay by Bank Transfer"
<?php
/**
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
* A simple gist that changes "Pay by Check" to "Pay by 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 Bank Transfer', 'paid-memberships-pro' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_pmpro_text_strings', 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment