WordPress at Your Fingertips
filter is not described

wp_sitemaps_add_provider filter-hook . WP 5.5.0

Filters the sitemap provider before it is added.

Usage

add_filter( 'wp_sitemaps_add_provider', 'filter_function_name_795', 10, 2 );
function filter_function_name_795( $provider, $name ){
	// filter...

	return $provider;
}
$provider(WP_Sitemaps_Provider)
Instance of a WP_Sitemaps_Provider.
$name(string)
Name of the sitemap provider.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

WP_Sitemaps_Registry::add_provider()
wp_sitemaps_add_provider
wp-includes/sitemaps/class-wp-sitemaps-registry.php 49
$provider = apply_filters( 'wp_sitemaps_add_provider', $provider, $name );

Where in WP core the hook is used WordPress

Usage not found.