Created
July 18, 2016 19:15
-
-
Save mikeyarce/38fdd4efb938cc5f55eb59a4fb7e2611 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 | |
| // Remove the opening PHP tag above if your file already includes it | |
| add_filter('gettext', 'translate_text'); | |
| add_filter('ngettext', 'translate_text'); | |
| function translate_text($translated) { | |
| $translated = str_ireplace('Choose an option', 'Select', $translated); | |
| $translated = str_ireplace('Original Text', 'Your Replacment Text', $translated); | |
| return $translated; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment