Skip to content

Instantly share code, notes, and snippets.

@nefeline
Created August 24, 2017 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nefeline/2ba493757a153d4a814e2a2ebddb5c36 to your computer and use it in GitHub Desktop.
Save nefeline/2ba493757a153d4a814e2a2ebddb5c36 to your computer and use it in GitHub Desktop.
add support for post categories to tribe events
/* Tribe, add support for post categories */
add_filter('tribe_events_register_event_type_args', 'change_event_type_args');
function change_event_type_args ( $args ) {
$args['taxonomies'][] = 'category';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment