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 );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。