self_admin_url

SummerySummery

Retrieves the URL to the admin area for either the current site or the network depending on context.

Syntax

self_admin_url( string $path = '', string $scheme = 'admin' )

ParametersParameters

$path

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

Default value: ''

$scheme

(string) (Optional) 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.

Default value: 'admin'

ReturnReturn

(string) Admin URL link with optional path appended.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Introduced.
Scroll to Top