Builds the URL for the sitemap index.

Return Return

(string) The sitemap index URL.

Top ↑

Source Source

File: wp-includes/sitemaps/class-wp-sitemaps-index.php

	public function get_index_url() {
		global $wp_rewrite;

		if ( ! $wp_rewrite->using_permalinks() ) {
			return home_url( '/?sitemap=index' );

		return home_url( '/wp-sitemap.xml' );

Top ↑

Changelog Changelog

Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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