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.
Source
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |