首页 WordPress函数大全 get_admin_url()

get_admin_url()

2020-05-01 / 4190阅 / 悠然

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

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

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

描述

参数

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

返回

(string) Admin URL link with optional path appended.

大家谈论
    我的见解