Forked from andrewlimaza/change_choose_your_payment_method_txt_pmpro.php
Last active
May 16, 2022 07:19
-
-
Save JarrydLong/bf06b652fc2bd9722e9b690f87b4c5e9 to your computer and use it in GitHub Desktop.
Change 'Choose your Payment Method' in 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 | |
/** | |
* This code is used to change 'Choose your Payment Method' text in Paid Memberships Pro. | |
* Add the function into your PMPro Customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function change_choose_your_payment( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Choose your Payment Method' : | |
$translated_text = __( 'Change this text', 'pmpro' ); | |
break; | |
case 'Payment Information' : | |
$translated_text = __( 'Change this text too', 'pmpro' ); | |
break; | |
} | |
return $translated_text; | |
} | |
//@link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment