• 欢迎来到本站,本站主要做程序员相关技术、博客、笔记,如果喜欢本网站那么赶紧使用Ctrl+D 收藏吧!
  • 如果有任何疑问,可以在下方文章下方留下你的评论~

How to completely disable WordPress 5.5+ XML Sitemap

视频教程 9个月前 (09-28) 1次浏览 0个评论

One of the main new features of WordPress 5.5 is to have XML sitemap, but many websites have used third-party plugins (such as Google XML Sitemaps, yoast SEO, all in one SEO Pack) to generate sitemaps.

In fact, for most sites, it is enough to use the XML site map function, but for some sites with complex content types, or you attach great importance to SEO, the setting options of the third-party site map plugin may be better used.

You can disable XML site maps using the plugin

You can disable WordPress 5.5 + original XML sitemap by installing and activating the WP Disable Sitemap plugin.

Disable XML site map by code

If you don’t want to install the plugin, you can add the following code to the functions.php:

add_filter( 'wp_sitemaps_enabled', '__return_false' );  

中国笔友, 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:How to completely disable WordPress 5.5+ XML Sitemap
喜欢 (0)
发表我的评论
取消评论
表情 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址