Wordpress 钩子:user_dashboard_url
文章目录
过滤用户的仪表板URL。
原型
apply_filters( 'user_dashboard_url', string $url, int $user_id, string $path, string $scheme )
参数
$url
(string)
完整的URL包括方案和路径。
$user_id
(int)
用户ID。
$path
(string)
相对于URL的路径。如果未指定路径,则为空字符串。
$scheme
(string)
提供URL上下文的方案。接受’http’,‘https’,‘login’,‘login_post’,‘admin’,‘relative’或null。
源文件
路径:wp-includes/link-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/user_dashboard_url/
文章作者 iBllex
上次更新 2019-02-17