Forked from strangerstudios/my_gettext_pay_by_check.php
Created
May 14, 2020 21:27
-
-
Save MaryOJob/f74b62fbf5360be1617ed3ea62e60e03 to your computer and use it in GitHub Desktop.
Update Pay by Check wording in pmpro-pay-by-check to something else.
This file contains hidden or 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 "Pay by Check" language to "Pay by Wire Transfer" | |
Add this code to your active theme's functions.php | |
or a custom plugin. | |
*/ | |
function my_gettext_pay_by_check($translated_text, $text, $domain) | |
{ | |
if($domain == "pmpropbc" && $text == "Pay by Check") | |
$translated_text = "Pay by Wire Transfer"; //change the text here | |
return $translated_text; | |
} | |
add_filter('gettext', 'my_gettext_pay_by_check', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment