Last updated July 11, 2026, Version 0.34
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 \GatherPress\Core\Event( get_the_ID() );
$venue = $event->get_venue();
if ( $venue ) {
$excerpt .= "\n\nLocation: " . $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 )