Open BrookeDot opened 3 weeks ago
When the msm_sitemap_skip_post filter was added the decision was made not to pass the post_id. The logic at the time was:
msm_sitemap_skip_post
post_id
This filter is called in the loop, so post data is not passed through the filter.
The current best practice is to pass the Post ID, which will make programmatically skipping posts much easier.
When the
msm_sitemap_skip_post
filter was added the decision was made not to pass thepost_id
. The logic at the time was:The current best practice is to pass the Post ID, which will make programmatically skipping posts much easier.