Skip to content

Instantly share code, notes, and snippets.

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