do_action( 'wp_sitemaps_init', WP_Sitemaps $wp_sitemaps )

Fires when initializing the Sitemaps object.

Description

Additional sitemaps should be registered on this hook.

Parameters

$wp_sitemaps

(WP_Sitemaps) Sitemaps object.

Source

File: wp-includes/sitemaps.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_init