Enable event categories for Venues too?

Home Forums Calendar Products Events Calendar PRO Enable event categories for Venues too?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18243
    Martijn Meyer
    Participant

    Is it possible to add the event categories for venues too? We need that for our project. Can be the same as the categories for events.

    #18256
    Jonah
    Participant

    Hey Martijn,

    Not officially but the way to do it would be to use the register_taxonomy_for_object_type() function like so:


    function run_init() {
    register_taxonomy_for_object_type('tribe_events_cat', 'tribe_venue');
    }
    add_action('init','run_init');

    It’s untested though and I’m not sure all the implications for this so be cautious and test it out 🙂

    #18262
    Martijn Meyer
    Participant

    Thanks!

    #18334
    Rob
    Member

    Awesome to hear that did the trick, Martijn. If you need anything else down the road please do let us know.

    #976669
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Enable event categories for Venues too?’ is closed to new replies.