wxr_site_url() WordPress Function

The wxr_site_url() function is used to retrieve the URL of the site for the specified network.

wxr_site_url() #

Return the URL of the site


Return

(string) Site URL.


Top ↑

Source

File: wp-admin/includes/export.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.