[wp-trac] [WordPress Trac] #58379: Can't disable the default wordpress xml sitemap

WordPress Trac noreply at wordpress.org
Tue May 23 10:21:03 UTC 2023


#58379: Can't disable the default wordpress xml sitemap
--------------------------+------------------------------
 Reporter:  ema15         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Sitemaps      |     Version:  6.1.1
 Severity:  critical      |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by costdev:

Old description:

> Hi,
>
> I created a custom sitemap for my website and I Want to disable the
> default wordpress (v6.1.1) sitemap (/wp-sitemap.xml). I added this code
> to functions.php add_filter( 'wp_sitemaps_enabled', '__return_false' );
> but nothing happened. The sitemap still accessible at /wp-sitemap.xml

New description:

 Hi,

 I created a custom sitemap for my website and I Want to disable the
 default wordpress (v6.1.1) sitemap (/wp-sitemap.xml). I added this code to
 functions.php `add_filter( 'wp_sitemaps_enabled', '__return_false' );` but
 nothing happened. The sitemap still accessible at /wp-sitemap.xml

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58379#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list