[wp-trac] [WordPress Trac] #51211: Implement a consistent function to obtain the sitemap location

WordPress Trac noreply at wordpress.org
Wed Sep 2 02:59:09 UTC 2020


#51211: Implement a consistent function to obtain the sitemap location
-------------------------+------------------------------
 Reporter:  GreatBlakes  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Sitemaps     |     Version:  5.5.1
 Severity:  trivial      |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by peterwilsoncc):

 The function `get_sitemap_url()` was introduced in WordPress 5.5.1 (refer
 to the file `/wp-includes/sitemaps.php`). It's a little more complex than
 your example as it allows for different types and pagination of sitemaps.

 It doesn't have any filters to allow other plugins to override/modify the
 value but this is something worth considering.

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


More information about the wp-trac mailing list