[ Index ]

PHP Cross Reference of WordPress




/wp-includes/sitemaps/ -> class-wp-sitemaps-registry.php (summary)

Sitemaps: WP_Sitemaps_Registry class Handles registering sitemap providers.

File Size: 85 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Sitemaps_Registry:: (3 methods):

Class: WP_Sitemaps_Registry  - X-Ref

Class WP_Sitemaps_Registry.

add_provider( $name, WP_Sitemaps_Provider $provider )   X-Ref
Adds a new sitemap provider.

since: 5.5.0
param: string               $name     Name of the sitemap provider.
param: WP_Sitemaps_Provider $provider Instance of a WP_Sitemaps_Provider.
return: bool Whether the provider was added successfully.

get_provider( $name )   X-Ref
Returns a single registered sitemap provider.

since: 5.5.0
param: string $name Sitemap provider name.
return: WP_Sitemaps_Provider|null Sitemap provider if it exists, null otherwise.

get_providers()   X-Ref
Returns all registered sitemap providers.

since: 5.5.0
return: WP_Sitemaps_Provider[] Array of sitemap providers.

Generated: Wed Oct 27 01:00:04 2021 Cross-referenced by PHPXref 0.7.1