You appear to be a bot. Output may be restricted
Description
Construct the complete URL of a sitemap file. Depends on permalink settings.
Usage
$string = Jetpack_Sitemap_Finder::construct_sitemap_url( $filename );
Parameters
- $filename
- ( string ) required – The filename of the sitemap.
Returns
string Complete URI of the given sitemap file.
Source
File name: jetpack/modules/sitemaps/sitemap-finder.php
Lines:
1 to 11 of 11
public function construct_sitemap_url( $filename ) { $url = jetpack_sitemap_uri( $filename ); if ( pathinfo( $filename, PATHINFO_EXTENSION ) === 'xsl' ) { // strip scheme for sites where sitemap could be access via http or https $url = preg_replace( '/^https?:/', '', $url ); } return $url; }