Core Function
View Source on Trac ↗ admin_url()
admin_url( mixed $path = '', mixed $scheme = 'admin' ) Retrieves the URL to the admin area for the current site.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $path string | Optional. Path relative to the admin URL. 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 |
Return Value
(string)
Admin URL link with optional path appended.
Function Information
Since Version
2.6.0
Source File
wp-includes/link-template.php
Advertisement