Loop Function to Detect is Event Reoccurs

Home Forums Calendar Products Events Calendar PRO Loop Function to Detect is Event Reoccurs

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #966982
    Andrew Wolfe
    Participant

    Is there a way to programmatically detect whether an event is part of a reoccurring series?

    tribe_all_occurences_link ();
    tribe_get_recurrence_text();

    That’s the only functions I can really find. The all occurrences link produces a link regardless of whether it’s a reoccurring event or not.

    #967102
    Nico
    Member

    Hi Andrew,

    Thanks for reaching out and welcome to our support forums!

    To check if event is recurring you can use tribe_is_recurring_event.


    if(tribe_is_recurring_event( $event_id )){
    //is recurring
    }

    Please let me know if that works for you,
    Best,
    Nico

    #967217
    Andrew Wolfe
    Participant

    That’s perfect. Exactly what I was needing!

    #967240
    Nico
    Member

    Awesome 🙂

    I’m going to close this topic – but please don’t hesitate to create new topics if you need help with anything else.

    Have a great day,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Loop Function to Detect is Event Reoccurs’ is closed to new replies.