site_url

The WordPress Core site url function.

Description

site_url(); 

Usage

  1. if ( !function_exists( 'site_url' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/noop.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = site_url(); 
  7.  

Defined (2)

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

/wp-admin/includes/noop.php  
  1. function site_url() {} 
/wp-includes/link-template.php  
  1. function site_url( $path = '', $scheme = null ) { 
  2. return get_site_url( null, $path, $scheme );