Skip to content

Instantly share code, notes, and snippets.

/rss-feed.php
Created Jan 20, 2016

Embed
What would you like to do?
<?php
// Die Inhalte des RSS-Feeds ergänzen
function ah_postrss($content) {
if(is_feed()){
$content = 'Dieser Artikel wurde von Andreas Hecht verfasst '.$content.'Schau dir DrWeb.de an';
}
return $content;
}
add_filter('the_excerpt_rss', 'ah_postrss');
add_filter('the_content', 'ah_postrss');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.