wp_sitemaps_init action-hook . WP 5.5.0
Fires when initializing the Sitemaps object.
Additional sitemaps should be registered on this hook.
Usage
add_action( 'wp_sitemaps_init', 'action_function_name_1264' ); function action_function_name_1264( $wp_sitemaps ){ // action... }
- $wp_sitemaps(WP_Sitemaps)
- Sitemaps object.
Changelog
Since 5.5.0 | Introduced. |
Where the hook is called
wp_sitemaps_init
wp-includes/sitemaps.php 39
do_action( 'wp_sitemaps_init', $wp_sitemaps );