function get_the_content_feed($feed_type = null) {}

Retrieve the post content for feeds.


  • string $feed_type: The type of feed. rss2 | atom | rss | rdf

Defined filters

  • the_content
    apply_filters('the_content', get_the_content()
  • the_content_feed
    apply_filters('the_content_feed', $content, $feed_type)

Source code

function get_the_content_feed($feed_type = null) {

	if ( !$feed_type )

		$feed_type = get_default_feed();

	$content = apply_filters('the_content', get_the_content());

	$content = str_replace(']]>', ']]>', $content);

	return apply_filters('the_content_feed', $content, $feed_type);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: