Inserting ads into wordpress default rss feeds

i’m hoping i’d find some help in regards to inserting ads into wordpress default rss feeds (i do not use feedburner)

<?php
function insertAds($content) {
    $content = $content.'<hr /><a href="http://www.wprecipes.com">Have you visited WpRecipes today?</a><hr />';
    return $content;
}
add_filter('the_excerpt_rss', 'insertAds');
add_filter('the_content_rss', 'insertAds');
?>

Source here

Read More

But i read that the_excerpt_rss and the_content_rss is kind of deprecated. Can anyone advise me on the present hooks to use?

Thanks

Related posts

Leave a Reply

2 comments