InterSet Ltd

How to remove unnecessary feed URLs


Warning: Trying to access array offset on value of type bool in /var/www/vhosts/interset.info/public_html/intersetmedia/wp-content/plugins/elementor-pro/modules/theme-elements/widgets/breadcrumbs.php on line 38
How You Can Quickly Find WordPress RSS Feed URL

Share Now:

Share on facebook
Share on linkedin
Share on twitter
Share on email
0 0 votes
Article Rating

The simplest way to get rid of them is to add a simple code snippet that tells WordPress not to display the URLs inside your code.

The following code removes every single RSS feed URL from every single page on the site. But then it adds the main feed URL back in.

remove_action( 'wp_head', 'feed_links', 2 );
remove_action('wp_head', 'feed_links_extra', 3 );

add_action('wp_head', 'addBackMainFeed');
function addBackMainFeed() {
	echo '';
}

If you want to remove all the RSS feed URLs without adding the main one back in, then this is the code to do so:

remove_action( 'wp_head', 'feed_links', 2 );
remove_action('wp_head', 'feed_links_extra', 3 );

If you don’t want to use the plugin, you can also add the code to your functions.php file. But be very careful editing this file, since a tiny mistake can crash your entire site.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

Get Free Access to InterSet’s 1 GB SSD Hosting with Website Design


Know Your

interset app coming soon

More You Would be interested in . . .

Have you any Question ?
Ask us !

0
Would love your thoughts, please comment.x
()
x