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 translate_text( $translated ) { | |
// The first parameter is the original text, the second parameter is the changed text. | |
$translated = str_ireplace( 'Choose and option', 'Select', $translated ); | |
// Returns the translated text | |
return $translated; | |
} | |
add_filter( 'gettext', 'translate_text' ); |