Last active
January 13, 2016 15:56
-
-
Save evrpress/c57da52a3848305524e8 to your computer and use it in GitHub Desktop.
Replacing certain strings
This file contains 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
function my_mymail_text_strings( $translated_text, $org_text, $domain ) { | |
if($domain != 'mymail') return $translated_text; | |
switch ( $org_text ) { | |
case 'Search for Text to Replace' : | |
$translated_text = 'Replace it with this text'; | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'my_mymail_text_strings', 20, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment