daily pastebin goal
0%
SHARE
TWEET

Fix the organizer and venue slugs (don't translate them!)

BakerMan Apr 3rd, 2014 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'init', 'fix_tribe_venue_org_slugs', 11 );
  2.  
  3. function fix_tribe_venue_org_slugs() {
  4.         if ( ! class_exists( 'TribeEvents' ) ) return;
  5.         $tribe = TribeEvents::instance();
  6.         $tribe->postVenueTypeArgs['rewrite']['slug'] = 'venue';
  7.         $tribe->postOrganizerTypeArgs['rewrite']['slug'] = 'organizer';
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top