For the friends who optimize the domestic search engine, they use the third-party XML map plugin, and now they add an XML map that comes with WordPress, which is not very friendly to Baidu. In contrast, the usage rate of the third-party XML map plugin is higher
This article shows you how to disable the XML map that comes with WordPress 5.5
The tutorial beginsDisable XML sitemap through plugin
You can disable the XML sitemap of WordPress 5.5 + by installing and activating the plugin WP disable sitemap.
Disable XML sitemap by code
In fact, the above plugin is just a piece of simple code. If you don’t want to install the plugin, you can add the following code to the topic functions.php It can be disabled.
add_filter( 'wp_sitemaps_enabled', '__return_false' );
The above is how to disable the XML map in WordPress 5.5. For more tutorials, please pay attention to WordPress technology tutorial