Skip to content

Instantly share code, notes, and snippets.

Created Nov 20, 2013
What would you like to do?
This removes both the excerpt and the longer encoded content from the RSS feed.
* Removes the content from the RSS feed and replaces it with a custom message.
* @param string $content
* @return string
function yst_clean_rss( $content ) {
if ( is_feed() )
return 'This is a new post on, Whoopity Doo!';
return $content;
add_filter( 'the_content_feed', 'yst_clean_rss', 90, 1 );
add_filter( 'the_excerpt_rss', 'yst_clean_rss', 90, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment