Disable all feeds in WordPress

For disabling all feeds in WordPress just add below code to your functions.php in theme folder.

 
	<?php
	function disableFeed() {
		wp_die(__('<h1>Sorry this feed is not available, please visit our <a href="'.get_bloginfo('url').'">Home Page</a>!</h1>'));
	}
		add_action('do_feed',      'disableFeed', 1);
		add_action('do_feed_rdf',  'disableFeed', 1);
		add_action('do_feed_rss',  'disableFeed', 1);
		add_action('do_feed_rss2', 'disableFeed', 1);
		add_action('do_feed_atom', 'disableFeed', 1);	
 
	?>

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …


Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us