Subscribing Parameters – Description
-
Greetings,
I’m currently using the Events Calendar plugin. I’d like to make it so where the user subscribes and is able to have two links included within their subscription description:
- Organizer’s website
- Event’s website (in this case, https://qalamcounseling.com/deadline/lums-undergraduate/)
I have managed to achieve this for Single Google Calendar subscriptions, but want to do so when a user subscribes to all events (from https://qalamcounseling.com/deadlines/).
This is the code I am using which seems to be working for Google Calendar for single events:
add_filter( 'tec_views_v2_single_event_gcal_link_parameters', 'tribe_add_event_url_to_gcal_description', 10, 2 ); function tribe_add_event_url_to_gcal_description( $pieces, $event ) { // Get the organizer website URL $organizer_url = tribe_get_organizer_website_url( $event->ID ); // Get the event link $event_link = get_permalink( $event->ID ); $event_description = urlencode( $event->post_content . "<br><br>Counselor Website: " . $organizer_url . "<br>Event Link: " . $event_link ); $pieces["details"] = $event_description; return $pieces; }Please help out in how I can enable the above to happen.
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Subscribing Parameters – Description’ is closed to new replies.