获取用户个人页面链接
描述
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.
用法
<?php get_admin_url( $blog_id, $path, $scheme ); ?>
参数
$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
返回值
(string)
Admin url link with optional path appended
历史
添加于 版本: 3.0
- 原文:http://codex.wordpress.org/Function_Reference/get_admin_url