View Single Post
Old 12-06-2014, 07:07 AM  
Venum
Confirmed User
 
Venum's Avatar
 
Industry Role:
Join Date: Nov 2014
Posts: 182
Put this code inside your theme functions.php file to disable feeds:
PHP Code:
function gfy_disable_feed() {
wp_die__('No feed available, please visit our <a href="'get_bloginfo('url') .'">homepage</a>!') );
}

add_action('do_feed''gfy_disable_feed'1);
add_action('do_feed_rdf''gfy_disable_feed'1);
add_action('do_feed_rss''gfy_disable_feed'1);
add_action('do_feed_rss2''gfy_disable_feed'1);
add_action('do_feed_atom''gfy_disable_feed'1);
add_action('do_feed_rss2_comments''gfy_disable_feed'1);
add_action('do_feed_atom_comments''gfy_disable_feed'1); 
You can change this text to what ever you want, "No feed available, please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!"

Example, "No feed available wanker, go to suck your daddy's dick!"
Venum is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote