Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save femiyb/38ea93e7d84111f459e96ff9dba69728 to your computer and use it in GitHub Desktop.
Save femiyb/38ea93e7d84111f459e96ff9dba69728 to your computer and use it in GitHub Desktop.
Update Pay by Check wording in pmpro-pay-by-check to something else.
<?php
/*
Change "Pay by Check" language to "Pay by Bank"
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 == "pmpro-pay-by-check" && $text == "Pay by Check")
$translated_text = "Pay by Bank"; //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