Returns a single registered sitemap provider.
(string) (Required) Sitemap provider name.
(WP_Sitemaps_Provider|null) Sitemap provider if it exists, null otherwise.
File: wp-includes/sitemaps/class-wp-sitemaps-registry.php
public function get_provider( $name ) { if ( ! isset( $this->providers[ $name ] ) ) { return null; } return $this->providers[ $name ]; }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps_registry/get_provider