3.10 Hide ical export from archive views

Home Forums Calendar Products Events Calendar PRO 3.10 Hide ical export from archive views

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #968951
    Glenn
    Participant

    Hello!

    I used the following code to hide the ability to export the events in Photos, lists, month etc views.

    // Hides the iCal/Export Listed Events link from tribe archive views such as List and Month
    remove_filter('tribe_events_after_footer', array('TribeiCal', 'maybe_add_link'), 10, 1);

    But it is no longer working so I guess something has changed.

    Any thoughts?

    Regards,

    Glenn.

    #969053
    Nico
    Member

    Hi Glenn,

    Thanks for reaching out on this and for trying out 3.10 RC!

    Indeed, class names had been refactored, so updating the class name to ‘Tribe__Events__iCal’ will get that working again. The code should look like this now:


    remove_filter('tribe_events_after_footer', array('Tribe__Events__iCal', 'maybe_add_link'), 10, 1);

    Let me know if that works for you,
    Have a great Friday,
    Nico

    PS: If you want to catch up with the changes introduced in 3.10, please check out this article: The Events Calendar/PRO/Add-ons 3.10: things to be aware of .

    #969225
    Glenn
    Participant

    Nico,

    Yep that did the trick. Thanks!

    And for me Friday was sooooo yesterday! 😉

    Regards,

    Glenn.

    #969528
    Nico
    Member

    Glenn,

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

    Best,
    Nico

    PS: hope you are having a great Tuesday 😉

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘3.10 Hide ical export from archive views’ is closed to new replies.