[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Sitemaps: WP_Sitemaps_Taxonomies class Builds the sitemaps for the 'taxonomy' object type.

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

Defines 1 class

WP_Sitemaps_Taxonomies:: (5 methods):
  __construct()
  get_object_subtypes()
  get_url_list()
  get_max_num_pages()
  get_taxonomies_query_args()


Class: WP_Sitemaps_Taxonomies  - X-Ref

Taxonomies XML sitemap provider.

__construct()   X-Ref
WP_Sitemaps_Taxonomies constructor.


get_object_subtypes()   X-Ref
Returns all public, registered taxonomies.

return: WP_Taxonomy[] Array of registered taxonomy objects keyed by their name.

get_url_list( $page_num, $object_subtype = '' )   X-Ref
Gets a URL list for a taxonomy sitemap.

return: array[] Array of URL information for a sitemap.
param: int    $page_num       Page of results.
param: string $object_subtype Optional. Taxonomy name. Default empty.

get_max_num_pages( $object_subtype = '' )   X-Ref
Gets the max number of pages available for the object type.

return: int Total number of pages.
param: string $object_subtype Optional. Taxonomy name. Default empty.

get_taxonomies_query_args( $taxonomy )   X-Ref
Returns the query args for retrieving taxonomy terms to list in the sitemap.

return: array Array of WP_Term_Query arguments.
param: string $taxonomy Taxonomy name.



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