Created
December 8, 2014 18:43
-
-
Save geoffgraham/3d826c947df8daaad7f3 to your computer and use it in GitHub Desktop.
Events Calendar 3.8 // Change No Results Notice
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
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