Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created April 21, 2015 18:47
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 jesseeproductions/5e4ded1c644580a7ee11 to your computer and use it in GitHub Desktop.
Save jesseeproductions/5e4ded1c644580a7ee11 to your computer and use it in GitHub Desktop.
Change No results Found Message
/*
* Change No results Found Message
* @version 3.9
*
*/
add_filter('gettext', 'tec_filter_translations', 10, 3);
function tec_filter_translations($translations, $text, $domain) {
if ($domain == 'tribe-events-calendar') {
$text = str_ireplace( 'There were no results found.', 'There were no results found-see next month', $text );
}
return $text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment