admin_url

The WordPress Core admin url function.

Description

admin_url(); 

Usage

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

Defined (2)

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

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