Skip to content

Instantly share code, notes, and snippets.

@enishant
Forked from trepmal/remove-feed-rewrite.php
Created March 11, 2014 10:21
Show Gist options
  • Save enishant/9483047 to your computer and use it in GitHub Desktop.
Save enishant/9483047 to your computer and use it in GitHub Desktop.
<?php
add_action('init', 'remove_feed_from_rewrite');
function remove_feed_from_rewrite() {
global $wp_rewrite;
$wp_rewrite->feeds = array( 'rdf', 'rss', 'rss2', 'atom' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment