WPDev.one
Core Function
View Source on Trac ↗

user_admin_url()

user_admin_url( mixed $path = '', mixed $scheme = 'admin' )

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

Parameters 1 required

Name / Type Description
$path
string

Optional. Path relative to the admin URL. Default empty.

string

$scheme 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.

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