On this page
WP_Sitemaps_Posts::__construct()
WP_Sitemaps_Posts constructor.
Source
File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php. View all references
public function __construct() {
$this->name = 'posts';
$this->object_type = 'post';
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Sitemaps::register_sitemaps() wp-includes/sitemaps/class-wp-sitemaps.php | Registers and sets up the functionality for all supported sitemaps. |
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps_posts/__construct