Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TEC > Remove the event post URL from the event iCal export feed
<?php
/*
* Description: Remove the event post URL from the event iCal export feed
* Usage: Paste the below snippet into your active (child) theme's functions.php file
*
* Plugin: The Events Calendar
* Author: Andras Guseo
* Last updated: 2021-03-12
*/
add_filter( 'tribe_ical_feed_item', 'tec_exclude_url_from_ical_feed', 10, 2 ) ;
function tec_exclude_url_from_ical_feed( $item, $event_post ) {
unset( $item['URL'] );
return $item;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment