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'.
Source
return apply_filters( 'the_content_feed', $content, $feed_type );
Changuelog
| Versionen | Description |
|---|---|
| 2.9.0 | Introduced. |
Example Migrated from Codex:
Count the number of words in $content, then add the count number as paragraph to the bottom of $content.