Title: Disable Sitemap function
Last modified: June 5, 2022

---

# Disable Sitemap function

 *  Resolved [melriks](https://wordpress.org/support/users/melriks/)
 * (@melriks)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/disable-sitemap-function/)
 * Is there a filter to disable the sitemap output? I’m having a problem with relative
   URLs on my sitemap and would like to disable TSF sitemap for troubleshooting.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/disable-sitemap-function/#post-15711339)
 * Hello!
 * You can disable TSF’s sitemap via the options at “SEO Settings > Sitemap Settings
   > General > Sitemap Output” — WordPress 5.5+ Core Sitemaps will take its place,
   though.
 * If you wish to use a filter, you can use this:
 *     ```
       add_action( 'the_seo_framework_after_front_init', function() {
       	remove_action( 'template_redirect', [ tsf(), '_init_sitemap' ], 1 );
       	remove_filter( 'wp_sitemaps_enabled', '__return_false' );
       } );
       ```
   
 * The filter doesn’t concern the robots.txt output, so you might still find a link
   there to a non-existing sitemap.

Viewing 1 replies (of 1 total)

 The topic ‘Disable Sitemap function’ is closed to new replies.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

## Tags

 * [sitemap](https://wordpress.org/support/topic-tag/sitemap/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/disable-sitemap-function/#post-15711339)
 * Status: resolved