WordPress at a glance
function is not described

WP_Sitemaps_Renderer::__construct() public WP 5.5.0

WP_Sitemaps_Renderer constructor.

{} It's a method of the class: WP_Sitemaps_Renderer{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Sitemaps_Renderer = new WP_Sitemaps_Renderer();
$WP_Sitemaps_Renderer->__construct();

Changelog

Since 5.5.0 Introduced.

Code of WP_Sitemaps_Renderer::__construct() WP 5.5.1

<?php
public function __construct() {
	$stylesheet_url = $this->get_sitemap_stylesheet_url();

	if ( $stylesheet_url ) {
		$this->stylesheet = '<?xml-stylesheet type="text/xsl" href="' . esc_url( $stylesheet_url ) . '" ?>';
	}

	$stylesheet_index_url = $this->get_sitemap_index_stylesheet_url();

	if ( $stylesheet_index_url ) {
		$this->stylesheet_index = '<?xml-stylesheet type="text/xsl" href="' . esc_url( $stylesheet_index_url ) . '" ?>';
	}
}