wp_sitemaps_init WordPress Action Hook
The wp_sitemaps_init hook is used to register sitemaps with WordPress. This hook is called during the WordPress initialization process, when the sitemaps feature is first loaded.
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
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |