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.
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' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |