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:

functions.php
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.

  1. Jetpack icon Jetpack3+ million installs apply_filters( 'the_excerpt_rss', get_the_excerpt() ) jetpack_vendor/automattic/jetpack-podcast/src/feed/class-customize-feed.php:233
  2. AI icon AI60,000+ installs apply_filters( 'the_excerpt_rss', get_the_excerpt( $post ) ) includes/Experiments/Markdown_Feeds/Markdown_Feed_Renderer.php:108
  3. Seriously Simple Podcasting icon Seriously Simple Podcasting20,000+ installs apply_filters( 'the_excerpt_rss', $output, $post_id, $is_excerpt_mode ) php/classes/handlers/class-feed-handler.php:695
  4. PowerPress Podcasting plugin by Blubrry icon PowerPress Podcasting plugin by Blubrry20,000+ installs apply_filters( 'the_excerpt_rss', $output ) feed-podcast.php:58
  5. Event Organiser icon Event Organiser20,000+ installs apply_filters( 'the_excerpt_rss', get_the_excerpt() ) includes/event-organiser-event-functions.php:1294
  6. PublishPress Permissions: Access Control, Content Permissions, User Access icon 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
  7. JSON Feed (jsonfeed.org) icon JSON Feed (jsonfeed.org)1,000+ installs apply_filters( 'the_excerpt_rss', $output ) feed-json-functions.php:205
  8. Events Made Easy icon Events Made Easy1,000+ installs apply_filters( 'the_excerpt_rss', $replacement ) includes/eme-events.php:4191
  9. Simple Podcasting icon Simple Podcasting100+ installs apply_filters( 'the_excerpt_rss', $feed_item['summary'] ) includes/customize-feed.php:218
  10. WP-API JSON Feed icon WP-API JSON Feed50+ installs apply_filters( 'the_excerpt_rss', get_the_excerpt() ) inc/class-wp-api-json-feed-rest-controller.php:602
  11. Simple Single Post Exporter icon Simple Single Post Exporter20+ installs apply_filters( 'the_excerpt_rss', $post->post_excerpt ) includes/class-simpsipo-export-handler.php:333
  12. Yandex Haber Turkiye icon Yandex Haber Turkiye10+ installs apply_filters( 'the_excerpt_rss', get_the_excerpt(true) ) template.php:174
  13. feed-modify-on-your-choice icon 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.