Add a Filter hook to make it possible to alter the event title in ical feeds
This commit is contained in:
@@ -138,6 +138,8 @@ foreach ( $events as $event):
|
|||||||
//Convert &#[0-9]+ entities to UTF-8
|
//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 = 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
|
// Append to output string
|
||||||
$output .=
|
$output .=
|
||||||
"BEGIN:VEVENT\r\n" .
|
"BEGIN:VEVENT\r\n" .
|
||||||
|
|||||||
Reference in New Issue
Block a user