[wp-trac] [WordPress Trac] #50465: Provide filters to add extra sitemap entries

WordPress Trac noreply at wordpress.org
Wed Jun 24 11:39:35 UTC 2020


#50465: Provide filters to add extra sitemap entries
-------------------------+------------------------------
 Reporter:  Chouby       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Sitemaps     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by Chouby):

 The new filter `wp_sitemaps_posts_query_args` is interesting. for another
 topic, I had to use the `parse_query` action. The new filter will help me
 to simplify the code and remove tests.

 But homepages are not necessarily pages. For the same reason you need to
 add the home url separately from the query, I have to add the translated
 homepages separately too.

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


More information about the wp-trac mailing list