Created
October 8, 2012 18:22
-
-
Save jo-snips/3854047 to your computer and use it in GitHub Desktop.
The Events Calendar: Filter iCal Event Item
This file contains hidden or 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
function filter_ical_description($item, $eventPost) { | |
$description = preg_replace( "/[\n\t\r]/", ' ', strip_tags( strip_shortcodes( $eventPost->post_content ) ) ); | |
$item[] = 'DESCRIPTION:' . str_replace( ',','\,', $description ); | |
return $item; | |
} | |
add_filter('tribe_ical_feed_item','filter_ical_description', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment