フィードの停止

フィードを停止する

<?php
add_action('do_feed', 'digwp_disable_feed', 1);
add_action('do_feed_rdf', 'digwp_disable_feed', 1);
add_action('do_feed_rss', 'digwp_disable_feed', 1);
add_action('do_feed_rss2', 'digwp_disable_feed', 1);
add_action('do_feed_atom', 'digwp_disable_feed', 1);

function digwp_disable_feed(){
	wp_die(__('<h1>Feed not available, please visit our <a href="'.esc_url( home_url() ).'">Home Page</a>!</h1>'), 'text-domain');
}
?>

http://digwp.com/2012/10/customizing-wordpress-feeds/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+DiggingIntoWordpress+%28Digging+Into+WordPress%29(@source)

[emulsion_relate_posts]