Quantcast
Channel: Removing feeds from header using a function? - WordPress Development Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by Tribalpixel for Removing feeds from header using a function?

why don´t use remove_theme_support() with add_action('after_setup_theme', 'my_setup_theme') ? function my_setup_theme() { remove_theme_support( 'automatic-feed-links' ); }...

View Article



Answer by its_me for Removing feeds from header using a function?

Try this instead: add_action( 'wp_head', 'wpse58023_wp_head', 1 ); function wpse58023_wp_head() { // Removes main feed link(s) remove_action( 'wp_head', 'feed_links', 2 ); // Removes comments feed link...

View Article

Answer by Joseph Leedy for Removing feeds from header using a function?

Try using init instead. According to the list of hooks, it runs before wp_head.

View Article

Removing feeds from header using a function?

I want to remove the default RSS feed, which I can successfully do by adding this in functions.php file. remove_action( 'wp_head', 'feed_links', 2 ); However, It is important for me to use this in a...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images