edit_profile_url

過濾鉤子
apply_filters( 'edit_profile_url', $url, $user_id, $scheme )
引數
  • (string) $url The complete URL including scheme and path.
    Required:
  • (int) $user_id The user ID.
    Required:
  • (string) $scheme Scheme to give the URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.
    Required:
定義位置
相關勾子
edit_user_profileedit_user_profile_updateedit_fieldget_role_listget_canonical_url
相關方法
get_edit_profile_urlget_profile_wp_credits_add_profile_linkget_home_urlget_rest_urlget_site_url
引入
3.1.0
棄用
-

edit_profile_url: 這個函式用來返回使用者在WordPress儀表盤上編輯他們的個人資料的URL。它通常與一個連結或按鈕一起使用,使使用者能夠輕鬆地訪問他們的個人資料編輯頁面。

過濾使用者的個人資料編輯器的URL。

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

常見問題

FAQs
檢視更多 >