How to Disable Default WordPress Sitemap

Default sitemap auto generated by WordPress, If you want to stop/disable sitemap created by WordPress. So paste given code in your WordPress theme.

add_filter( 'wp_sitemaps_enabled', '__return_false' );

How to Disable Default Site in WordPress

Follow these simple steps and turnoff default site from your WordPress website.

  • Open your cpanel then go to public_html.
  • Then go to content then select theme.
  • Then open active theme’s folder.
  • Open functions.php and paste code.

Hope this code will work in your WordPress theme and disable Default sitemap.