On this page
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 blog URL.
return get_bloginfo_rss( 'url' );
}
}
Related
Uses
| Uses | Description |
|---|---|
| get_bloginfo_rss() wp-includes/feed.php | Retrieves RSS container for the bloginfo function. |
| network_home_url() wp-includes/link-template.php | Retrieves the home URL for the current network. |
| is_multisite() wp-includes/load.php | If Multisite is enabled. |
Used By
| Used By | Description |
|---|---|
| export_wp() wp-admin/includes/export.php | Generates the WXR export file for download. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wxr_site_url