Summery Summery
Return the URL of the site
Syntax Syntax
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
Version | Description |
---|---|
2.5.0 | Introduced. |