Make Event Categories private

Home Forums Calendar Products Events Calendar PRO Make Event Categories private

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43279
    Denise Crosbie
    Participant

    I am following the info in this thread:
    https://tri.be/support/forums/topic/make-a-specific-calendarcatagory-private/page/2/

    I want to make certain categories private. So, this thread provides some code but not much details. What I have done so far:
    – created a plugin folder called: private-event-cat
    – created a plugin file called : private-event-cat.php – pasted in the code & additional code provided from this thread
    – activated my plugin

    Now form here I can’t see what to do?? The code seems to indicate that I have to have the term “private” somewhere, but I don’t see where this would be?

    Any help would be appreciated, thanks!

    Denise.

    #43281
    Denise Crosbie
    Participant

    Oh I think I just figured it out, there was apparently a page 1 to this post that I missed:
    https://tri.be/support/forums/topic/make-a-specific-calendarcatagory-private/

    I just had to updat the code to list the slugs of the cateogires I wanted to make private here in the code, seems to work fine now…

    $taxquery = array( ‘taxonomy’ => TribeEvents::TAXONOMY,
    ‘field’ => ‘slug’,
    ‘terms’ => array( ‘u12-team-events’, ‘u14-team-events’, ‘u16-team-events’, ‘u18-team-events’, ‘u21-team-events’, ‘adult-team-events’ ),
    ‘operator’ => ‘NOT IN’ );

    #43295
    Jonah
    Participant

    Hi manitobathunder,

    Glad you got it working! So are you all set here?

    – Jonah

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Make Event Categories private’ is closed to new replies.