wxr_site_url

Advertisement

Summery Summery

Return the URL of the site

Syntax Syntax

wxr_site_url()

Return Return

(string) Site URL.

Source 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' );
		}
	}

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.