WordPress filter hook · part of WordPress core
the_excerpt_rss
A WordPress core filter that 13 plugins also fire themselves, running on 3.1M+ sites between them.
“Filters the post excerpt for a feed.”
How to use the_excerpt_rss
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'the_excerpt_rss', function( $output ) {
// Change $output here.
return $output;
}, 10, 1 );Argument names come from PowerPress Podcasting plugin by Blubrry's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
13 plugins that fire the_excerpt_rss
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Jetpack3+ million installs
apply_filters( 'the_excerpt_rss', get_the_excerpt() )jetpack_vendor/automattic/jetpack-podcast/src/feed/class-customize-feed.php:233 -
AI60,000+ installs
apply_filters( 'the_excerpt_rss', get_the_excerpt( $post ) )includes/Experiments/Markdown_Feeds/Markdown_Feed_Renderer.php:108 -
Seriously Simple Podcasting20,000+ installs
apply_filters( 'the_excerpt_rss', $output, $post_id, $is_excerpt_mode )php/classes/handlers/class-feed-handler.php:695 -
PowerPress Podcasting plugin by Blubrry20,000+ installs
apply_filters( 'the_excerpt_rss', $output )feed-podcast.php:58 -
Event Organiser20,000+ installs
apply_filters( 'the_excerpt_rss', get_the_excerpt() )includes/event-organiser-event-functions.php:1294 -
PublishPress Permissions: Access Control, Content Permissions, User Access10,000+ installs
apply_filters( 'the_excerpt_rss', get_the_excerpt(true) )modules/presspermit-teaser/classes/Permissions/Teaser/FeedFilters.php:96 -
JSON Feed (jsonfeed.org)1,000+ installs
apply_filters( 'the_excerpt_rss', $output )feed-json-functions.php:205 -
Events Made Easy1,000+ installs
apply_filters( 'the_excerpt_rss', $replacement )includes/eme-events.php:4191 -
Simple Podcasting100+ installs
apply_filters( 'the_excerpt_rss', $feed_item['summary'] )includes/customize-feed.php:218 -
WP-API JSON Feed50+ installs
apply_filters( 'the_excerpt_rss', get_the_excerpt() )inc/class-wp-api-json-feed-rest-controller.php:602 -
Simple Single Post Exporter20+ installs
apply_filters( 'the_excerpt_rss', $post->post_excerpt )includes/class-simpsipo-export-handler.php:333 -
Yandex Haber Turkiye10+ installs
apply_filters( 'the_excerpt_rss', get_the_excerpt(true) )template.php:174 -
feed-modify-on-your-choice10+ installs
apply_filters( 'the_excerpt_rss', $output )feedfile/feed.php:179
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.