From 40fefcae00a6ed38ebdf1e625bdf199ab40375fd Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 1 Jun 2026 22:44:02 +0200 Subject: [PATCH 1/5] add hook --- src/wp-includes/sitemaps/class-wp-sitemaps.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index d4bbe38c86b11..6d9b8fbecdb16 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -179,6 +179,8 @@ public function render_sitemaps() { return; } + do_action( 'wp_doing_sitemaps' ); + // Render stylesheet if this is stylesheet route. if ( $stylesheet_type ) { $stylesheet = new WP_Sitemaps_Stylesheet(); From c69d6a43cee0eefc9fe9d4d1df1df58578d82d7a Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 3 Jul 2026 07:53:31 +0200 Subject: [PATCH 2/5] add docblok --- src/wp-includes/sitemaps/class-wp-sitemaps.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index 6d9b8fbecdb16..418573204f1f8 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -179,6 +179,11 @@ public function render_sitemaps() { return; } + /** + * Fires when a sitemap or sitemap stylesheet is being rendered. + * + * @since 7.1.0 + */ do_action( 'wp_doing_sitemaps' ); // Render stylesheet if this is stylesheet route. From 2bac3059221656faf753d925ad44f33b0bc1eb4c Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 14 Nov 2026 22:54:45 +0900 Subject: [PATCH 3/5] update planned wp version --- src/wp-includes/sitemaps/class-wp-sitemaps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index b615c1aa567dd..712bf163e8d53 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -185,7 +185,7 @@ public function render_sitemaps() { /** * Fires when a sitemap or sitemap stylesheet is being rendered. * - * @since 7.1.0 + * @since 7.2.0 */ do_action( 'wp_doing_sitemaps' ); From 33f74152b10b0dd6d698791c30ddc82abc0ffa06 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 20 Nov 2026 09:39:32 +0900 Subject: [PATCH 4/5] update to wp 7.3 --- src/wp-includes/sitemaps/class-wp-sitemaps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index 712bf163e8d53..7682b31aeba14 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -185,7 +185,7 @@ public function render_sitemaps() { /** * Fires when a sitemap or sitemap stylesheet is being rendered. * - * @since 7.2.0 + * @since 7.3.0 */ do_action( 'wp_doing_sitemaps' ); From 0da9fc8734d0035dbd612608b349dc1b9c59a523 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 20 Nov 2026 10:03:36 +0900 Subject: [PATCH 5/5] adjust docblock --- src/wp-includes/sitemaps/class-wp-sitemaps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index 7682b31aeba14..8e9e9bbc29b06 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -183,7 +183,7 @@ public function render_sitemaps() { } /** - * Fires when a sitemap or sitemap stylesheet is being rendered. + * Fires when a sitemap is being rendered. * * @since 7.3.0 */