You appear to be a bot. Output may be restricted
Description
Path and query prefix of sitemap files. Depends on permalink settings.
Usage
$string = Jetpack_Sitemap_Finder::the_jetpack_sitemap_path_and_query_prefix();
Parameters
Returns
string The path+query prefix.
Source
File name: jetpack/modules/sitemaps/sitemap-finder.php
Lines:
1 to 25 of 25
public function the_jetpack_sitemap_path_and_query_prefix() { global $wp_rewrite; // Get path fragment from home_url(). $home = wp_parse_url( home_url() ); if ( isset( $home['path'] ) ) { $home_path = $home['path']; } else { $home_path = ''; } // Get additional path fragment from filter. $location = Jetpack_Options::get_option_and_ensure_autoload( 'jetpack_sitemap_location', '' ); if ( $wp_rewrite->using_index_permalinks() ) { return $home_path . '/index.php' . $location . '/'; } elseif ( $wp_rewrite->using_permalinks() ) { return $home_path . $location . '/'; } else { return $home_path . $location . '/?jetpack-sitemap='; } }