W3cubDocs

/WordPress

WP_Sitemaps_Posts::__construct()

WP_Sitemaps_Posts constructor.

Source

File: wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php

public function __construct() {
		$this->name        = 'posts';
		$this->object_type = 'post';
	}

Changelog

Version Description
5.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_sitemaps_posts/__construct