wxr_site_url(): string
Returns the URL of the site.
Return
string Site URL.
Source
File: wp-admin/includes/export.php
.
View all references
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
Version | Description |
---|---|
2.5.0 | Introduced. |