Remove "share to calendar" links for past events

Home Forums Calendar Products Events Calendar PRO Remove "share to calendar" links for past events

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #99575
    Marcus J Wilson
    Participant

    Hi – we’ve noticed that even archive events in ECP show the share to calendar icons. Is there a conditional statement or function we can use to check if the event displayed is current or past so we don’t show these links on archive events? i.e. if !is_upcoming(), or something like that?

    #100240
    Barry
    Member

    Hi – great idea!

    Perhaps you could use the tribe_get_start_date() function (or tribe_get_end_date() depending on what you feel is most suitable) and compare against the current date/time?

    Would that work for you?

    #100443
    Barry
    Member

    (Just resubscribing myself to the thread, you can ignore this post!)

    #105907
    Barry
    Member

    It’s been quite a while so I’ll go ahead and close this – but please don’t hesitate to open new threads for any further issues. Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove "share to calendar" links for past events’ is closed to new replies.