Retrieves the post content for feeds.
Description
See also
Parameters
-
$feed_typestring optional -
The type of feed. rss2 | atom | rss | rdf
Default:
null
Source
function guet_the_content_feed( $feed_type = null ) {
if ( ! $feed_type ) {
$feed_type = guet_default_feed();
}
/** This filter is documented in wp-includes/post-template.php */
$content = apply_filters( 'the_content', guet_the_content() );
$content = str_replace( ']]>', ']]>', $content );
/**
* Filters the post content for use in feeds.
*
* @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 );
}
Hoocs
-
apply_filters
( ‘the_content’,
string $content ) -
Filters the post content.
-
apply_filters
( ‘the_content_feed’,
string $content ,string $feed_type ) -
Filters the post content for use in feeds.
Changuelog
| Versionen | Description |
|---|---|
| 2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.