My Code

a guest Apr 15th, 2012 383 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function mysite_kill_rss() {
  2.     wp_die( __('No feeds available, please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
  3.   }
  5. add_action('do_feed', 'mysite_kill_rss', 1);
  6. add_action('do_feed_rdf', 'mysite_kill_rss', 1);
  7. add_action('do_feed_rss', 'mysite_kill_rss', 1);
  8. add_action('do_feed_rss2', 'mysite_kill_rss', 1);
  9. add_action('do_feed_atom', 'mysite_kill_rss', 1);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand