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



admin_url › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'admin_url', $url, $path, $blog_id, $scheme )
参数: (4)
  • (string) $url The complete admin area URL including scheme and path.
    Required: Yes
  • (string) $path Path relative to the admin area URL. Blank string if no path is specified.
    Required: Yes
  • (int|null) $blog_id Site ID, or null for the current site.
    Required: Yes
  • (string|null) $scheme The scheme to use. Accepts 'http', 'https', 'admin', or null. Default 'admin', which obeys force_ssl_admin() and is_ssl().
    Required: Yes
定义在:
文档:

Filters the admin area URL.





源码

return apply_filters( 'admin_url', $url, $path, $blog_id, $scheme );