Created
July 20, 2021 13:38
-
-
Save JarrydLong/e27a68bbb8098db281fb0943fa74266c to your computer and use it in GitHub Desktop.
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 | |
function mypmpro_change_membership_checkout_text( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'You have selected the <strong>%s</strong> membership level.': | |
$translated_text = __( 'Thank you for selecting <strong>%s</strong>.', 'pmpro' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'mypmpro_change_membership_checkout_text', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment