[wp-trac] [WordPress Trac] #62071: Add custom sitemap function to wordpress 6.7

WordPress Trac noreply at wordpress.org
Fri Sep 20 16:06:56 UTC 2024


#62071: Add custom sitemap function to wordpress 6.7
-----------------------------+-------------------------
 Reporter:  phanduynam       |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Sitemaps         |     Version:
 Severity:  normal           |  Resolution:  worksforme
 Keywords:                   |     Focuses:
-----------------------------+-------------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 You can use the `wp_sitemaps_add_provider` filter to prevent the users
 (authors) sitemap from being added.

 You can uses filters such as `wp_sitemaps_max_urls`,
 `wp_sitemaps_posts_query_args`,  `wp_sitemaps_posts_pre_max_num_pages`,
 and `wp_sitemaps_posts_pre_url_list` to further customize and short-
 circuit behavior.

 So what you are looking for is already possible.

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


More information about the wp-trac mailing list