Created
April 26, 2019 05:45
-
-
Save RiodeJaneiroo/708ef68f75e08f1d587277484ef5433f to your computer and use it in GitHub Desktop.
[ wordpress remove feed] #wordpress #seo
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 | |
add_action('do_feed', 'itsme_disable_feed', 1); | |
add_action('do_feed_rdf', 'itsme_disable_feed', 1); | |
add_action('do_feed_rss', 'itsme_disable_feed', 1); | |
add_action('do_feed_rss2', 'itsme_disable_feed', 1); | |
add_action('do_feed_atom', 'itsme_disable_feed', 1); | |
add_action('do_feed_rss2_comments', 'itsme_disable_feed', 1); | |
add_action('do_feed_atom_comments', 'itsme_disable_feed', 1); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment