Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'fix_tribe_venue_org_slugs', 11 );
- function fix_tribe_venue_org_slugs() {
- if ( ! class_exists( 'TribeEvents' ) ) return;
- $tribe = TribeEvents::instance();
- $tribe->postVenueTypeArgs['rewrite']['slug'] = 'venue';
- $tribe->postOrganizerTypeArgs['rewrite']['slug'] = 'organizer';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement