↧
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 ArticleAnswer 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 ArticleAnswer 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 ArticleRemoving 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