user_dashboard_url

过滤钩子


apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme )
参数
  • (string)
    $url
    The complete URL including scheme and path.
    Required:
  • (int)
    $user_id
    The user ID.
    Required:
  • (string)
    $path
    Path relative to the URL. Blank string if no path is specified.
    Required:
  • (string)
    $scheme
    Scheme to give the URL context. Accepts ‘http’, ‘https’, ‘login’,
    ‘login_post’, ‘admin’, ‘relative’ or null.
    Required:
定义位置
  • wp-includes/link-template.php
    , line 3897
引入
3.1.0
弃用

过滤一个用户的仪表板URL。

return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme );