W3cubDocs

/WordPress

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_sitemapsWP_Sitemaps
Sitemaps object.

Source

do_action( 'wp_sitemaps_init', $wp_sitemaps );

Changelog

Version Description
5.5.0 Introduced.

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