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; }
Note: if the text you are trying to change is not translatable ie. not wrapped in a __( or _e( within the theme files this technique will not work on that text.