|
/ Documentation /Developers Documentation/ Disable Permalinks in RSS Feeds surerank_disable_permalink_in_feed

Disable Permalinks in RSS Feeds surerank_disable_permalink_in_feed

Hook: surerank_disable_permalink_in_feed

Description: This filter allows you to disable clickable permalinks for posts or pages within the RSS feed output generated by SureRank. Enabling this filter can be useful if you prefer to display plain text titles without linking to the original content, which is helpful for content protection, custom feed behavior, or simplifying feed output for third-party tools.

Source: inc/frontend/feed.php

Use Case: Use this filter if you want to prevent RSS feed readers from turning post titles into links, or if you’re generating a custom feed where links are not required.

Usage: Remove permalinks in feeds

Example:

PHP
// Disable permalinks for posts in the feed generated by SureRank.
add_filter( 'surerank_disable_permalink_in_feed', '__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
On this page
Scroll to Top