Core Function
View Source on Trac ↗ get_admin_url()
get_admin_url( mixed $blog_id = null, mixed $path = '', mixed $scheme = 'admin' ) Retrieves the URL to the admin area for a given site.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | null) $blog_id Optional. Site ID. Default null (current site). Required |
| $path string | Optional. Path relative to the admin URL. Default empty. |
| string | $scheme Optional. The scheme to use. Accepts 'http' or 'https', to force those schemes. Default 'admin', which obeys force_ssl_admin() and is_ssl(). Required |
Return Value
(string)
Admin URL link with optional path appended.
Function Information
Since Version
3.0.0
Source File
wp-includes/link-template.php
Advertisement