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.


Top ↑

Parameters

$wp_sitemaps

(WP_Sitemaps)Sitemaps object.


Top ↑

Source

File: wp-includes/sitemaps.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.