apply_filters( 'the_content_feed', string $content, string $feed_type )
- Since
- 2.9.0
Filters the post content for use in feeds.
Compatibility
- WordPress
- since 2.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$contentstring- The current post content.
$feed_typestring- Type of feed. Possible values include 'rss2', 'atom'.
Default 'rss2'.
Where this hook fires · 1
wp-includes/feed.php:208get_the_content_feed()
Source code
* @since 2.9.0 * * @param string $content The current post content. * @param string $feed_type Type of feed. Possible values include 'rss2', 'atom'. * Default 'rss2'. */ return apply_filters( 'the_content_feed', $content, $feed_type );} /** * Displays the post content for feeds. * * @since 2.9.0Changelog
Introduced in 2.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.