{"id":1816,"date":"2024-12-17T10:47:10","date_gmt":"2024-12-17T09:47:10","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/desactiver-le-plan-du-site-wp\/"},"modified":"2025-01-01T17:27:03","modified_gmt":"2025-01-01T16:27:03","slug":"desactiver-le-plan-du-site-wp","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/disable-wp-sitemap\/","title":{"rendered":"Disable WP sitemap"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Disable WordPress Native Sitemap with WPMasterToolKit<\/h1>\n\n\n\n<p>Since WordPress 5.5, an XML sitemap system has been integrated by default, enabling search engines to better explore site content. However, in some cases, this native sitemap isn't necessary. For example, if you're already using an SEO plugin like Yoast SEO or Rank Math, these tools offer more advanced and customizable sitemap functionality. To avoid conflicts or simply disable an unwanted component, we've designed the <strong>Disable WP Sitemap<\/strong> in WPMasterToolKit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why disable the native WordPress sitemap?<\/h2>\n\n\n\n<p>Although useful in certain situations, the integrated sitemap can become superfluous in the following cases:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Using an SEO plugin<\/strong> Most SEO plugins, such as Yoast SEO or Rank Math, generate more robust and configurable XML sitemaps.<\/li>\n\n\n\n<li><strong>Sitemap not required<\/strong> : Some sites, such as sites under construction or very simple sites, don't need an XML sitemap.<\/li>\n\n\n\n<li><strong>Simplification<\/strong> : By deactivating the native sitemap, you avoid unnecessary requests for this file, making your site slightly more efficient.<\/li>\n<\/ol>\n\n\n\n<p>The module <strong>Disable WP Sitemap<\/strong> allows you to disable this feature with a single click, without the need to edit code or install third-party plugins.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the Disable WP Sitemap module works<\/h2>\n\n\n\n<p>The module <strong>Disable WP Sitemap<\/strong> uses a simple and effective approach to disabling WordPress' native XML sitemap. Here's how it works:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Global deactivation<\/strong> This module applies the filter <code data-no-auto-translation=\"\">wp_sitemaps_enabled<\/code>module, integrated into WordPress, to completely disable the XML sitemap system. Once activated, WordPress will no longer generate sitemaps.<\/li>\n\n\n\n<li><strong>Native solution<\/strong> The use of the <code data-no-auto-translation=\"\">__return_false<\/code> ensures clean deactivation without touching the core of WordPress.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Technique used: the filter <code data-no-auto-translation=\"\">wp_sitemaps_enabled<\/code><\/h3>\n\n\n\n<p>The filter <code data-no-auto-translation=\"\">wp_sitemaps_enabled<\/code> is provided by WordPress to allow developers to easily disable the XML sitemap system. By applying this filter and returning <code data-no-auto-translation=\"\">false<\/code>the module deactivates the functionality without affecting other parts of your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use this module<\/h2>\n\n\n\n<p>Nothing could be simpler! Here's how to disable the native WordPress sitemap with WPMasterToolKit :<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate the plugin <strong>WPMasterToolKit<\/strong> on your WordPress site.<\/li>\n\n\n\n<li>Activate the \"Disable WP Sitemap\" module in the WPMasterToolKit dashboard.<\/li>\n\n\n\n<li>Once activated, the native sitemap will be automatically disabled. You can check this by trying to access the sitemap URL (<code data-no-auto-translation=\"\">\/wp-sitemap.xml<\/code>), which will now return a 404 error.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Our technical choices for this module<\/h2>\n\n\n\n<p>We've opted for a simple, minimalist method, true to our \"one module activated = one module loaded\" philosophy. Here are the key choices that make this module so effective:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Lightweight<\/strong> The module is limited to a single line of code using the native filter <code data-no-auto-translation=\"\">wp_sitemaps_enabled<\/code>. This guarantees maximum compatibility with future versions of WordPress.<\/li>\n\n\n\n<li><strong>Non-intrusive<\/strong> Unlike some plugins, this module adds no unnecessary code and has no impact on other WordPress features.<\/li>\n\n\n\n<li><strong>Easy activation<\/strong> With just a few clicks, you can activate or deactivate the module to suit your needs, without touching the code.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Disable WP Sitemap<\/strong> from WPMasterToolKit is ideal for site administrators who don't need WordPress' native XML sitemap, or who are already using a more powerful alternative. Thanks to its simplicity and efficiency, this module keeps your site optimized and lean. Test it today and keep full control over your WordPress site's functionality!<\/p>","protected":false},"excerpt":{"rendered":"<p>Disable WordPress' native XML sitemap in a single click with WPMasterToolKit's **Disable WP Sitemap** module. Ideal for avoiding conflicts with SEO plugins such as Yoast or Rank Math, this module lightens up your site by removing superfluous functionality. Simple, fast and effective, it guarantees total control over your WordPress site.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_robots_primary_cat":"","_seopress_titles_title":"D\u00e9sactiver Sitemap WordPress avec WPMasterToolKit Easily","_seopress_titles_desc":"Optimisez WordPress avec WPMasterToolKit : simplifiez votre SEO en d\u00e9sactivant le sitemap natif pour utiliser des solutions comme Yoast ou Rank Math.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1816","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}