Quantcast
Channel: Disable feeds for specific custom post types - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 3

Disable feeds for specific custom post types

0
0

I want to remove the feeds for specific custom post types. Most recommended methods are not clean. There seems to be a option called $args->feeds but this does not work within the register_post_type() function.

 register_post_type(
  ...
   'rewrite' => array('slug' => 'slug/%term&', 
                      'with_front' => false,
                      'feeds' => false), // Remove feed rewrite-rules?
  ...
 );

Source: Line 1324 - /wp-includes/post.php (Wordpress 3.5)

I'm looking for a solution, to disable the rule generation inside $wp_rewrite->rules.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images