首页 WordPress函数大全 admin_url()

admin_url()

2020-05-01 / 4141阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

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

描述

参数

$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'

返回

(string) Admin URL link with optional path appended.

大家谈论
    我的见解