Last active
June 17, 2019 16:37
-
-
Save nefeline/5fb3654ef0baa4b10f24920ba8c924fd to your computer and use it in GitHub Desktop.
Changes the "There were no results found" text on TEC.
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
<?php | |
/** | |
* Change the "There were no results found" text on TEC. | |
*/ | |
add_filter( 'tribe_the_notices', 'change_notice', 10, 2 ); | |
function change_notice( $html ) { | |
if ( stristr( $html, 'There were no results found.' ) ) { | |
//Replace 'Your custom message' with the text you want. | |
$html = str_replace( 'There were no results found.', 'Your custom message', $html ); | |
} | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment