Support

Home Forums Event Espresso Premium EE Calendar Addon – Calendar Event Links

EE Calendar Addon – Calendar Event Links

Posted: May 31, 2023 at 11:02 pm

Viewing 2 reply threads


Digital Services Lab

May 31, 2023 at 11:02 pm

Hello, I am using the Calendar view add-on and on a couple of my events they have Alternative Registration urls pointing to external sites.

This works great when you view the event as the REGISTER button links to the external site, however on the Calendar I still want the calendar item to link to the event on my site.
Is it possible to change the calendar item to link to the internal event instead of the alternative registration url?


Garth

  • Support Staff

June 1, 2023 at 1:57 pm

Someone smarter than me might be able to give you a snippet to do what you’re asking. But you could also:

– Discontinue using the Alternate Registration URL
– Hide the Ticket Selector using the option in the event settings
– Link to the registration page in the content area of the event

That way the calendar links to the event page, and your event page links to the registration page.

Does that help?


Digital Services Lab

June 6, 2023 at 9:09 pm

I’ve dug through the plugin files and worked out how to fix this. For anyone else, here is the answer I used:

add_filter('FHEE__EE_Calendar__tooltip_event_permalink', 'dsl_use_local_event_permalink', 10, 3);
add_filter('FHEE__EE_Datetime_In_Calendar__to_array_for_json__url', 'dsl_use_local_event_permalink', 10, 3);

function dsl_use_local_event_permalink($permalink, $event, $datetime) {

    return get_the_permalink($event->ID());

}
Viewing 2 reply threads

The support post ‘EE Calendar Addon – Calendar Event Links’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso