wxr_site_url

Return the URL of the site.

Description

(string) wxr_site_url(); 

Returns (string)

Site URL.


Usage

  1. if ( !function_exists( 'wxr_site_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-custom-fields/core/actions/export.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wxr_site_url(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/core/actions/export.php  
  1. function wxr_site_url() { 
  2. // ms: the base url 
  3. if ( is_multisite() ) 
  4. return network_home_url(); 
  5. //wp the blog url 
  6. else 
  7. return get_site_url();