Disable WordPress RSS-Feed
<?php
function ccd_disable_feed() {
wp_die( __( 'No feed available, please visit <a href="'. get_bloginfo('url') .'">Home</a>!' ) );
}
add_action( 'do_feed', 'ccd_disable_feed', 1 );
add_action( 'do_feed_rdf', 'ccd_disable_feed', 1 );
add_action( 'do_feed_rss', 'ccd_disable_feed', 1 );
add_action( 'do_feed_rss2', 'ccd_disable_feed', 1 );
add_action( 'do_feed_atom', 'ccd_disable_feed', 1 );
?>
WordPress Snippet