Filter to remove credit from sitemap

#747053
  • Resolved Chris Diprose
    Rank Math free

    Hi,

    Sitemap: https://neonbydesign.com/sitemap_index.xml

    I am using the rank-math.php in the theme (which is definitely correct theme) and file is definitely being read, to filter out the credit.

    ##
    <?php
    add_filter( ‘rank_math/sitemap/remove_credit’, ‘__return_true’);
    add_filter( ‘rank_math/frontend/remove_credit_notice’, ‘__return_true’ );
    ##

    BUT .. this is obviously not working, the Rank Math links and credit are showing in the XML sitemap.

    How to remove?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Filter to remove credit from sitemap’ is closed to new replies.