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:
定義位置
相關勾子
user_admin_urllostpassword_urlget_avatar_urlself_admin_urluser_admin_menu
相關方法
get_dashboard_urlget_dashboard_bloguser_admin_urlwp_dashboardwp_dashboard_setupwp_dashboard_quota
引入
3.1.0
棄用
-

user_dashboard_url 是一個 WordPress 函式,用於檢索給定使用者或當前使用者的使用者儀表盤的 URL。 使用者儀表盤是使用者可以檢視和管理他們的個人資料資訊以及與其帳戶相關的其他資訊的地方。

過濾一個使用者的儀表盤URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme );
return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme );
return apply_filters( 'user_dashboard_url', $url, $user_id, $path, $scheme );

常見問題

FAQs
檢視更多 >