WordPress函数文档get_admin_url()

获取用户个人页面链接 描述 Retrieve the url to the admin area for a …

获取用户个人页面链接

描述

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
类别:WordPress函数文档

本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

评论 (0)COMMENT