Created
March 12, 2021 20:53
-
-
Save andrasguseo/4f15f95dea636cb85a6730a74e59dd0f to your computer and use it in GitHub Desktop.
TEC > Remove the event post URL from the event iCal export feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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