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
Allow plugins/themes to modify the generated XML #143
I'd like to start using msm-sitemap for a site's main sitemaps, but keep using Yoast's News Sitemap plugin until there's an alternative for generating news sitemaps. So, I need a way to add this additional sitemap URL to the end of the index.
Yoast's SEO plugin has a filter to accomplish this, which their News Sitemap plugin hooks into:
/**
* Filter to append sitemaps to the index.
*
* @param string $index String to append to sitemaps index, defaults to empty.
*/
$xml .= apply_filters( 'wpseo_sitemap_index', '' );
I think it would make sense to add a similar filter to this plugin.
I'd like to start using msm-sitemap for a site's main sitemaps, but keep using Yoast's News Sitemap plugin until there's an alternative for generating news sitemaps. So, I need a way to add this additional sitemap URL to the end of the index.
Yoast's SEO plugin has a filter to accomplish this, which their News Sitemap plugin hooks into:
I think it would make sense to add a similar filter to this plugin.