wp_sitemaps_init action-hookWP 5.5.0

Fires when initializing the Sitemaps object.

Additional sitemaps should be registered on this hook.

Usage

add_action( 'wp_sitemaps_init', 'wp_kama_sitemaps_init_action' );

/**
 * Function for `wp_sitemaps_init` action-hook.
 * 
 * @param WP_Sitemaps $wp_sitemaps Sitemaps object.
 *
 * @return void
 */
function wp_kama_sitemaps_init_action( $wp_sitemaps ){

	// action...
}
$wp_sitemaps(WP_Sitemaps)
Sitemaps object.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

wp_sitemaps_get_server()
wp_sitemaps_init
wp-includes/sitemaps.php 39
do_action( 'wp_sitemaps_init', $wp_sitemaps );

Where the hook is used in WordPress

Usage not found.