wp_sitemaps_add_provider

wp_sitemaps_add_provider

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_sitemaps_add_provider') is found 1 times:

  • /wp-includes/sitemaps/class-wp-sitemaps-registry.php line 50
    		 *
    		 * @param WP_Sitemaps_Provider $provider Instance of a WP_Sitemaps_Provider.
    		 * @param string               $name     Name of the sitemap provider.
    		 */
    		$provider = apply_filters( 'wp_sitemaps_add_provider', $provider, $name );
    		if ( ! $provider instanceof WP_Sitemaps_Provider ) {
    			return false;
    		}
    
    		$this->providers[ $name ] = $provider;
    
    

See this hook used in plugins: