home_url

The WordPress Core home url function.

Description

home_url(); 

Usage

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

Defined (2)

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

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