SHOW:
|
|
- or go back to the newest paste.
1 | function change_upcoming_event_title($text) { | |
2 | - | if ($text === 'Upcoming Events') return 'Upcoming wine classes'; |
2 | + | if (strpos($text, 'Upcoming Events') !== false) |
3 | - | else return $text; |
3 | + | $text = str_replace('Upcoming Events', 'Texas Wine School Classes', $text); |
4 | ||
5 | elseif (strpos($text, 'Calendar of Events') !== false) | |
6 | $text = str_replace('Calendar of Events', 'Class Calendar', $text); | |
7 | ||
8 | return $text; | |
9 | } | |
10 | ||
11 | add_filter('tribe_get_events_title', 'change_upcoming_event_title'); |