You appear to be a bot. Output may be restricted
Description
Produce final XML output with debug information.
Usage
$string = WPSEO_Sitemaps_Renderer::get_output( $sitemap, $transient );
Parameters
- $sitemap
- ( string ) required – Sitemap XML.
- $transient
- ( boolean ) required – Transient cache flag.
Returns
string
Source
File name: wordpress-seo/inc/sitemaps/class-sitemaps-renderer.php
Lines:
1 to 20 of 20
public function get_output( $sitemap, $transient ) { $output = '<?xml version="1.0" encoding="' . esc_attr( $this->output_charset ) . '"?>'; if ( $this->stylesheet ) { /** * Filter the stylesheet URL for the XML sitemap. * * @param string $stylesheet Stylesheet URL. */ $output .= apply_filters( 'wpseo_stylesheet_url', $this->stylesheet ) . "\n"; } $output .= $sitemap; $output .= "\n<!-- XML Sitemap generated by Yoast SEO -->"; return $output; }