Advertisements

get_the_content_feed

Definition:
function get_the_content_feed($feed_type = null) {}

Retrieve the post content for feeds.

Parameters

  • 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);

}

1825

Advertisements

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:

WordPress.com Logo

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

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: