get_admin_url()获取用户个人页面链接

目录

描述

Retrieve the url to the admin area for a given site. This function is similar to admin_url() but includes additional support for WordPress MS.

get_admin_url() 描述

用法

<?php get_admin_url$blog_id$path$scheme ); ?>

get_admin_url() 用法

参数

$blog_id

(int) (可选) Blog ID. Defaults to current blog.

默认值: null

$path

(string) (可选) Path relative to the admin url

默认值: empty string

$scheme

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

默认值: admin

get_admin_url() 参数

返回值

(string

Admin url link with optional path appended

get_admin_url() 返回值

历史

添加于 版本: 3.0

get_admin_url() 历史