Created
January 20, 2016 15:40
-
-
Save anonymous/e6f1245b16fad2dba636 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Die totale Abschaltung der RSS-Feeds | |
function ah_disable_feed() { | |
wp_die( __('Kein Feed verfügbar. Bitte besuchen Sie unsere <a href="'. get_bloginfo('url') .'">Startseite</a>!') ); | |
} | |
add_action('do_feed', 'ah_disable_feed', 1); | |
add_action('do_feed_rdf', 'ah_disable_feed', 1); | |
add_action('do_feed_rss', 'ah_disable_feed', 1); | |
add_action('do_feed_rss2', 'ah_disable_feed', 1); | |
add_action('do_feed_atom', 'ah_disable_feed', 1); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment