diff --git a/inc/sitemaps/class-sitemaps-renderer.php b/inc/sitemaps/class-sitemaps-renderer.php index 255d44902f3..1b0adf1976b 100644 --- a/inc/sitemaps/class-sitemaps-renderer.php +++ b/inc/sitemaps/class-sitemaps-renderer.php @@ -339,7 +339,8 @@ protected function encode_url_rfc3986( $url ) { */ protected function get_xsl_url() { if ( home_url() !== site_url() ) { - return home_url( 'main-sitemap.xsl' ); + $sitemap_public_url = home_url( 'main-sitemap.xsl' ); + return apply_filter('sitemap_public_url', $sitemap_public_url); } /*