Return to Snippet

Revision: 46253
at May 15, 2011 01:16 by gabbo


Initial Code
/**
 * disable feed
 */
function fb_disable_feed() {
    wp_die( __('Kein Feed erreichbar, besuchen Sie doch bitte die <a href="'. get_bloginfo('url') .'">Startseite</a>!') );
}

add_action('do_feed', 'fb_disable_feed', 1);
add_action('do_feed_rdf', 'fb_disable_feed', 1);
add_action('do_feed_rss', 'fb_disable_feed', 1);
add_action('do_feed_rss2', 'fb_disable_feed', 1);
add_action('do_feed_atom', 'fb_disable_feed', 1);

Initial URL
http://bueltge.de/wordpress-feeds-deaktivieren/794/

Initial Description
In die functions.php des Themes einfügen.

Initial Title
WordPress RSS-Feed deaktivierung

Initial Tags
wordpress

Initial Language
PHP