[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/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):
  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.
since: 5.5.0

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.
since: 5.5.0

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

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



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1