W3cubDocs

/WordPress

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.

Source

File: wp-includes/sitemaps/class-wp-sitemaps-registry.php

View on Trac

Changelog

Version Description
5.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sitemaps_add_provider