Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'gettext', 'change_no_event_text' );
- function change_no_event_text( $text ) {
- if ( false === strpos( $text, 'There are no upcoming events at this time.' ) ) return $text;
- return 'Custom message or HTML';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement