WP_Sitemaps_Renderer::__construct()

In this article

WP_Sitemaps_Renderer constructor.

Source

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 ) . '" ?>';
	}
}

Changelog

VersionDescription
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.