Wordpress Disable RSS Feed
Published on| January 24th, 2010 | No Comment.
You might see that RSS feeds is set default Enable with WordPress.
For example , if you make the web site of static pages, you may not use RSS feeds with WordPress.
So, you may want to disable RSS feeds. It is very simple.
See : “Disable WordPress Feed”
You will append to ‘function.php’ of thema the following php code.
Oh, simple.
/** * Disable Our Feed Urls */ function disable_our_feeds() { wp_die( __('<strong>Error:</strong> No RSS Feed Available, Please visit our <a href="'. get_bloginfo('url') .'" class="broken_link" >homepage</a>.') ); } add_action('do_feed', 'disable_our_feeds', 1); add_action('do_feed_rdf', 'disable_our_feeds', 1); add_action('do_feed_rss', 'disable_our_feeds', 1); add_action('do_feed_rss2', 'disable_our_feeds', 1); add_action('do_feed_atom', 'disable_our_feeds', 1); remove_action('wp_head', 'rsd_link'); remove_action('wp_head', 'feed_links_extra', 3);
You might also like:
Trackback URL
After Admin approves this comment, it will be shown.
Comments
Leave a Reply

