Filters the event excerpt in feeds.
Allows themes and plugins to modify the event excerpt before it is included in feeds.
This can be used to add custom formatting, additional event information, or modify
how event excerpts appear in RSS and other feeds.
Example usage:
add_filter( 'gatherpress_event_feed_excerpt', function( $excerpt ) {
// Add event location to feed excerpt
$event = new GatherPressCoreEvent( get_the_ID() );
$venue = $event->get_venue();
if ( $venue ) {
$excerpt .= "nnLocation: " . $venue;
}
return $excerpt;
} );
Auto-generated Example
add_filter(
'gatherpress_event_feed_excerpt',
function( string $excerpt ) {
// Your code here.
return $excerpt;
}
);
Parameters
string$excerptThe event post excerpt.
Files
apply_filters( 'gatherpress_event_feed_excerpt', $excerpt )