Feed-Links automatisch in wp_head ausgeben

functions.php
add_theme_support('automatic-feed-links'); generiert am Beispiel von wpdoc.de:

<link rel="alternate" type="application/rss+xml" title="WordPress Doc &raquo; Feed" href="https://wpdoc.de/feed/" />
<link rel="alternate" type="application/rss+xml" title="WordPress Doc &raquo; Kommentar-Feed" href="https://wpdoc.de/comments/feed/" />

Referenz

RSS-Feeds deaktivieren und aus wp_head entfernen

Plugin

// Feeds deaktivieren und Fehlermeldung ausgeben
 function disable_feed() {
 wp_die( __('Für diese Website ist kein Feed verf&uuml;gbar. <a href="'. get_bloginfo('url') .'">Zur Startseite</a>.') );
 }
 add_action('do_feed', 'disable_feed', 1);
 add_action('do_feed_rdf', 'disable_feed', 1);
 add_action('do_feed_rss', 'disable_feed', 1);
 add_action('do_feed_rss2', 'disable_feed', 1);
 add_action('do_feed_atom', 'disable_feed', 1);
// Feeds aus wp_head entfernen
 remove_action( 'wp_head', 'feed_links_extra', 3 );
 remove_action( 'wp_head', 'feed_links', 2 );