WordPress开发者和主题制作者的搜索引擎



admin_url ›

Since2.6.0
已弃用n/a
admin_url ( $path = '', $scheme = 'admin' )
参数: (2)
  • (string) $path Optional path relative to the admin URL.
    Required: No
    默认: (empty)
  • (string) $scheme 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.
    Required: No
    默认: 'admin'
返回:
  • (string) Admin URL link with optional path appended.
定义在:
文档:

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



源码

function admin_url( $path = '', $scheme = 'admin' ) {
	return get_admin_url( null, $path, $scheme );
}