Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

Turn off WordPress’s own sitemap

Switches off /wp-sitemap.xml. Use it when an SEO plugin makes the sitemap instead, so search engines only find one.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category SEO
  • Tested with WordPress 7.1
PHP
<?php

add_filter( 'wp_sitemaps_enabled', '__return_false' );

Good to know

Yoast SEO, Rank Math and most SEO plugins already do this for you.

In these packs

  • Turn off more: More features you may not need: sitemaps, trackbacks, automatic updates, pattern suggestions.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.