Last active
February 4, 2021 13:20
-
-
Save femiyb/bcbca1c4f8ec6a709a9c80e85913e4c8 to your computer and use it in GitHub Desktop.
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 | |
function translate_pmpro_text( $translated_text, $text, $domain ) | |
{ | |
if($domain == 'paid-memberships-pro') { | |
if($text == 'Membership invoice'){ | |
$translated_text = 'Subscriber Invoice'; | |
} | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'translate_pmpro_text', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment