I really want to disable RSS and Comment perfectly.
But there is no perfect(simple, ultimate) way.
I think WordPress should add options for them on General Settings page
and, is anybody know some tricks?
I really want to disable RSS and Comment perfectly.
But there is no perfect(simple, ultimate) way.
I think WordPress should add options for them on General Settings page
and, is anybody know some tricks?
Add to your theme's functions.php file:
// Disable feeds
function my_disable_feed() {
wp_die( __('No feed available. Please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
}
add_action('do_feed', 'my_disable_feed', 1);
add_action('do_feed_rdf', 'my_disable_feed', 1);
add_action('do_feed_rss', 'my_disable_feed', 1);
add_action('do_feed_rss2', 'my_disable_feed', 1);
add_action('do_feed_atom', 'my_disable_feed', 1);You must log in to post.