Turning Off WordPress’ RSS Feeds

<?php 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); Window size: 1568 x 988 Viewport size: 1568 x 880
Static websites don’t need a feed, and this code allows you to turn them off easily.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.