Automattic / msm-sitemap

Comprehensive sitemaps for your WordPress VIP site. Joint collaboration between Metro.co.uk, WordPress VIP, Alley Interactive, Maker Media, 10up, and others.
74 stars 37 forks source link

Adding hook for custom post status with tests #176

Closed elysium001 closed 9 months ago

elysium001 commented 9 months ago

Pull Request: Add msm_sitemap_post_status WordPress Hook

Description: This pull request introduces a new WordPress hook, msm_sitemap_post_status, to facilitate customization of post statuses for inclusion in the sitemap. This feature was specifically requested by a customer to enhance the flexibility of handling custom post statuses in the sitemap functionality.

Changes Introduced:

Background: A customer expressed the need for a way to use a post status other than 'published' to build the sitemap, prompting the development of this feature. The introduction of the msm_sitemap_post_status hook allows developers to extend the sitemap functionality easily and integrate their custom post statuses.

Related Issues:

Reviewers: TBD