[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Sitemaps: WP_Sitemaps_Users class Builds the sitemaps for the 'user' object type.

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

Defines 1 class

WP_Sitemaps_Users:: (4 methods):
  __construct()
  get_url_list()
  get_max_num_pages()
  get_users_query_args()


Class: WP_Sitemaps_Users  - X-Ref

Users XML sitemap provider.

__construct()   X-Ref
WP_Sitemaps_Users constructor.

since: 5.5.0

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

param: int    $page_num       Page of results.
param: string $object_subtype Optional. Not applicable for Users but
return: array[] Array of URL information for a sitemap.
since: 5.5.0

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

param: string $object_subtype Optional. Not applicable for Users but
return: int Total page count.
since: 5.5.0

get_users_query_args()   X-Ref
Returns the query args for retrieving users to list in the sitemap.

return: array Array of WP_User_Query arguments.
since: 5.5.0



Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1