You appear to be a bot. Output may be restricted
Description
Retrieve the contents of a sitemap with given name and type.
If no such sitemap exists, return the empty string. Note that the returned string is run through wp_specialchars_decode.
Usage
$string = Jetpack_Sitemap_Librarian::get_sitemap_text( $name, $type );
Parameters
- $name
- ( string ) required – Row name.
- $type
- ( string ) required – Row type.
Returns
string Text of the specified sitemap, or the empty string.
Source
File name: jetpack/modules/sitemaps/sitemap-librarian.php
Lines:
1 to 9 of 9
public function get_sitemap_text( $name, $type ) { $row = $this->read_sitemap_data( $name, $type ); if ( null === $row ) { return ''; } else { return $row['text']; } }