On this page
apply_filters( 'the_content_feed', string $content, string $feed_type )
Filters the post content for use in feeds.
Parameters
$contentstring-
The current post content.
$feed_typestring-
Type of feed. Possible values include
'rss2','atom'.
Default'rss2'.
More Information
- The “
the_content_feed” filter is used to filter the content of the post after it is retrieved from the database and filtered by “the_content” hook and before it is sent to RSS reader (or browser). - The filter callback function must return the content after it is finished processing, or feed readers will see a blank item and other plugins also filtering the feed content may generate errors.
Source
File: wp-includes/feed.php. View all references
return apply_filters( 'the_content_feed', $content, $feed_type );
Related
Used By
| Used By | Description |
|---|---|
| get_the_content_feed() wp-includes/feed.php | Retrieves the post content for feeds. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/the_content_feed