-
I am trying to remove the following text from my sitemap:
This XML Sitemap is generated by Rank Math WordPress SEO Plugin. It is what search engines like Google use to crawl and re-crawl posts/pages/products/images/archives on your website.
Learn more about XML Sitemaps.In order to do that, I am trying to use the this hook as a plugin, because I can’t use functions.php in the Oxygen Theme.
So, this is the code of my plugin:
<?php /** * Plugin Name: Remove Rank Math Credit * Description: Remove the Rank Math credit from the sitemap. * Version: 1.0.0 * Author: Custom Plugin */ /** * Filter to remove sitemap credit. * * @param boolean Defaults to false. */ add_filter('rank_math/sitemap/remove_credit', '__return_true');
But it doesn’t work.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The ticket ‘Removing credits from sitemaps’ is closed to new replies.