[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Sitemaps: WP_Sitemaps_Provider class This class is a base class for other sitemap providers to extend and contains shared functionality.

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

Defines 4 functions

  get_sitemap_type_data()
  get_sitemap_entries()
  get_sitemap_url()
  get_object_subtypes()

Functions
Functions that are not part of a class:

get_sitemap_type_data()   X-Ref
Gets data about each sitemap type.

return: array[] Array of sitemap types including object subtype name and number of pages.

get_sitemap_entries()   X-Ref
Lists sitemap pages exposed by this provider.

The returned data is used to populate the sitemap entries of the index.

return: array[] Array of sitemap entries.

get_sitemap_url( $name, $page )   X-Ref
Gets the URL of a sitemap entry.

param: string $name The name of the sitemap.
param: int    $page The page of the sitemap.
return: string The composed URL for a sitemap entry.

get_object_subtypes()   X-Ref
Returns the list of supported object subtypes exposed by the provider.

return: array List of object subtypes objects keyed by their name.



Generated : Sat Apr 20 08:20:01 2024 Cross-referenced by PHPXref