Add a Filter hook to make it possible to alter the event title in ical feeds

This commit is contained in:
savvasha
2020-10-26 09:08:44 +02:00
parent 1d81899a9e
commit 0e1b2b9494

View File

@@ -138,6 +138,8 @@ foreach ( $events as $event):
//Convert &#[0-9]+ entities to UTF-8
$summary = preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, $summary);
$summary = apply_filters( 'sportspress_ical_feed_summary', $summary, $event );
// Append to output string
$output .=
"BEGIN:VEVENT\r\n" .