# Disable the Built-in XML Sitemaps

> Turns off the wp-sitemap.xml sitemaps added in WordPress 5.5. Use it when an SEO plugin already generates sitemaps.

- Type: PHP
- Runs: Run everywhere
- Category: [SEO](https://wpide.com/library/category/seo/)
- Tags: seo, sitemap, disable
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-wordpress-sitemaps/

## Code

```php
add_filter( 'wp_sitemaps_enabled', '__return_false' );
```

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Disable the Built-in XML Sitemaps" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
