diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index 92c3375912cba..8e9e9bbc29b06 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -182,6 +182,13 @@ public function render_sitemaps() { return; } + /** + * Fires when a sitemap is being rendered. + * + * @since 7.3.0 + */ + do_action( 'wp_doing_sitemaps' ); + // Render the index. if ( 'index' === $sitemap ) { $sitemap_list = $this->index->get_sitemap_list();