/** Disable WordPres Feeds **/
function wp_disable_feed() {
wp_die( '目前不提供 RSS 功能,請前往我們的 <a href="'. get_bloginfo('url') .'">首頁</a>。' );
}
add_action('do_feed', 'wp_disable_feed', 1);
add_action('do_feed_rdf', 'wp_disable_feed', 1);
add_action('do_feed_rss', 'wp_disable_feed', 1);
add_action('do_feed_rss2', 'wp_disable_feed', 1);
add_action('do_feed_atom', 'wp_disable_feed', 1);
Disable Rss wp
by
Tags: