Comprehensive sitemaps for your WordPress VIP site. Joint collaboration between Metro.co.uk, WordPress VIP, Alley Interactive, Maker Media, 10up, and others.
73
stars
37
forks
source link
Adding hook for custom post status with tests #176
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:
Added msm_sitemap_post_status hook in msm-sitemap.php.
Documented usage of the new hook in the codebase and readme
Added unit tests to make sure other query and helper functions still work accordingly.
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.
Pull Request: Add
msm_sitemap_post_status
WordPress HookDescription: 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:
msm_sitemap_post_status
hook inmsm-sitemap.php
.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