Skip to content

Instantly share code, notes, and snippets.

@trishasalas
Last active March 19, 2017 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trishasalas/eae367f6f09c7958aa8284b84e025563 to your computer and use it in GitHub Desktop.
Save trishasalas/eae367f6f09c7958aa8284b84e025563 to your computer and use it in GitHub Desktop.
function tribe_translate_filterbar_eventcategory_text( $translated_text, $untranslated_text ) {
//make the changes to the text
switch( $untranslated_text ) {
case 'Event Category':
$translated_text = __( 'TRANSLATED TEXT HERE', 'tribe-events-filter-view' );
break;
}
return $translated_text;
}
add_filter('gettext', 'tribe_translate_filterbar_eventcategory_text', 20, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment