On this page
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
File: wp-includes/sitemaps.php. View all references
do_action( 'wp_sitemaps_init', $wp_sitemaps );
Related
Used By
| Used By | Description |
|---|---|
| wp_sitemaps_get_server() wp-includes/sitemaps.php | Retrieves the current Sitemaps server instance. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_init