Last active
October 15, 2020 09:39
-
-
Save femiyb/0e6c379e287fa24c94fd956c9132a0cf 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 | |
/* | |
Change text | |
*/ | |
function my_pmpro_gettext_membership($translated_text, $text, $domain) | |
{ | |
$translated_text = str_replace("LEVEL", "LEVEL Changed text", $translated_text); | |
$translated_text = str_replace("Another TEXT", "Another Changed text", $translated_text); | |
return $translated_text; | |
} | |
add_filter("gettext", "my_pmpro_gettext_membership", 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment