Posted By

joseduenas on 09/16/10


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

lgarcia


Desactivar feed WordPress


 / Published in: PHP
 

  1. function fb_disable_feed() {
  2. wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
  3. }
  4.  
  5. add_action('do_feed', 'fb_disable_feed', 1);
  6. add_action('do_feed_rdf', 'fb_disable_feed', 1);
  7. add_action('do_feed_rss', 'fb_disable_feed', 1);
  8. add_action('do_feed_rss2', 'fb_disable_feed', 1);
  9. add_action('do_feed_atom', 'fb_disable_feed', 1);

Report this snippet  

You need to login to post a comment.