wxr_site_url(): string

In this article

Returns the URL of the site.

Return

string Site URL.

Source

function wxr_site_url() {
	if ( is_multisite() ) {
		// Multisite: the base URL.
		return network_home_url();
	} else {
		// WordPress (single site): the site URL.
		return get_bloginfo_rss( 'url' );
	}
}

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

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