Core Class
View Source on Trac ↗
Core Class
WP_Sitemaps_Posts
class WP_Sitemaps_Posts
// Constructor: function Object() { [native code] } Posts XML sitemap provider.
Methods 5 methods
| Method / Return | Description |
|---|---|
| __construct() void | WP_Sitemaps_Posts constructor. |
| get_object_subtypes() WP_Post_Type[] | Returns the public post types, which excludes nav_items and similar types. |
| get_url_list() array[] | Gets a URL list for a post type sitemap.
Parameters: $page_num: mixed, $object_subtype: mixed |
| get_max_num_pages() int | Gets the max number of pages available for the object type.
Parameters: $object_subtype: mixed |
| get_posts_query_args() array | Returns the query args for retrieving posts to list in the sitemap.
Parameters: $post_type: mixed |
Class Information
Since Version
5.5.0
Source File
wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php
Advertisement