Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Changes the no results notice in The Events Calendar
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement