Skip to content

Instantly share code, notes, and snippets.

@geoffgraham
Created December 8, 2014 18:43
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 geoffgraham/3d826c947df8daaad7f3 to your computer and use it in GitHub Desktop.
Save geoffgraham/3d826c947df8daaad7f3 to your computer and use it in GitHub Desktop.
Events Calendar 3.8 // Change No Results Notice
add_filter( 'tribe_events_the_notices', 'customize_notice', 10, 2 );
function customize_notice( $html, $notices ) {
// If text is found in notice, then replace it
if( stristr( $html, 'There were no results found.' ) ) {
// Customize the message as needed
$html = str_replace( 'There were no results found.', 'Your custom notice goes here.', $html );
}
return $html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment