|
/ Documentation /Developers Documentation/ Control SureRank Feed Noindex Header surerank_disable_feed_indexing

Control SureRank Feed Noindex Header surerank_disable_feed_indexing

Filter: surerank_disable_feed_indexing

Description: SureRank sends an X-Robots-Tag: noindex header on feed responses by default. Returning true from this filter suppresses that header; it does not guarantee that search engines will index the feed.

Source: inc/frontend/feed.php

Use Case: SureRank’s default noindex header asks supported search engines not to index feed URLs. Crawlers must still request a feed to see the directive. Use this filter only if you want to suppress SureRank’s header.

Usage: Return true to suppress SureRank’s feed noindex header

Example:

PHP
// Stop SureRank from sending its feed noindex header.
add_filter( 'surerank_disable_feed_indexing', '__return_true' );

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top