wp_sitemaps_add_provider WordPress Filter Hook

The wp_sitemaps_add_provider hook is used to add new sitemap providers to the WordPress sitemaps feature. This hook is called when the sitemaps feature is first initialized.

apply_filters( 'wp_sitemaps_add_provider', WP_Sitemaps_Provider $provider, string $name ) #

Filters the sitemap provider before it is added.


Parameters

$provider

(WP_Sitemaps_Provider)Instance of a WP_Sitemaps_Provider.

$name

(string)Name of the sitemap provider.


Top ↑

Source

File: wp-includes/sitemaps/class-wp-sitemaps-registry.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.