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

WordPress Trac noreply at wordpress.org
Fri Sep 20 17:36:27 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:
-----------------------------+-------------------------

Comment (by phanduynam):

 that means i have to edit the code right? but what i want is a solution
 built into wordpress not to edit the code

 Replying to [comment:1 swissspidy]:
 > 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:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list