A WordPress-centric search engine for devs and theme authors



admin_url ›

Since2.6.0
Deprecatedn/a
admin_url ( $path = '', $scheme = 'admin' )
Parameters: (2)
  • (string) $path Optional path relative to the admin URL.
    Required: No
    Default: (empty)
  • (string) $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes.
    Required: No
    Default: 'admin'
Returns:
  • (string) Admin URL link with optional path appended.
Defined at:
Codex:

Retrieves the URL to the admin area for the current site.



Source

function admin_url( $path = '', $scheme = 'admin' ) {
	return get_admin_url( null, $path, $scheme );
}