Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This is a string-based hack to change the "Event Category" meta label to
- * "Category" (and the same for the plural forms). In an ideal world we would
- * use something more resilient like using tribe_set_meta_label().
- */
- function edit_tribe_single_meta_output($html, $meta_group_id) {
- if ('tribe_event_details' !== 'tribe_event_details') return $html;
- $html = str_replace('Event Category', 'Category', $html);
- return str_replace('Event Categories', 'Categories', $html);
- }
- add_filter('tribe_get_meta_group', 'edit_tribe_single_meta_output', 10, 2);
Add Comment
Please, Sign In to add comment