get_admin_url

SummerySummery

Retrieves the URL to the admin area for a given site.

Syntax

get_admin_url( int $blog_id = null, string $path = '', string $scheme = 'admin' )

ParametersParameters

$blog_id

(int) (Optional) Site ID. Default null (current site).

Default value: null

$path

(string) (Optional) Path relative to the admin URL.

Default value: ''

$scheme

(string) (Optional) The scheme to use. Accepts 'http' or 'https', to force those schemes. Default 'admin', which obeys force_ssl_admin() and is_ssl().

Default value: 'admin'

ReturnReturn

(string) Admin URL link with optional path appended.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Introduced.
Scroll to Top