Skip to content

Instantly share code, notes, and snippets.

@andrasguseo
Created March 12, 2021 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrasguseo/4f15f95dea636cb85a6730a74e59dd0f to your computer and use it in GitHub Desktop.
Save andrasguseo/4f15f95dea636cb85a6730a74e59dd0f to your computer and use it in GitHub Desktop.
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