[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Sitemaps: WP_Sitemaps_Registry class Handles registering sitemap providers.

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

Defines 1 class

WP_Sitemaps_Registry:: (3 methods):
  add_provider()
  get_provider()
  get_providers()


Class: WP_Sitemaps_Registry  - X-Ref

Class WP_Sitemaps_Registry.

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

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

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

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

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

return: WP_Sitemaps_Provider[] Array of sitemap providers.



Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref