lostpassword_redirect

過濾鉤子
apply_filters( 'lostpassword_redirect', $lostpassword_redirect )
引數
  • (string) $lostpassword_redirect The redirect destination URL.
    Required:
定義位置
相關勾子
lostpassword_urlpost_password_expireslostpassword_errorspassword_resetlostpassword_user_data
相關方法
post_password_requiredwp_lostpassword_urlget_password_reset_keywp_redirectis_redirectauth_redirect
引入
3.0.0
棄用
-

lostpassword_redirect是一個過濾鉤,允許開發人員修改使用者在密碼重置成功後被重定向到的URL。預設情況下,使用者會被重定向到登入頁面,但這個過濾器可以用來將使用者重定向到一個不同的頁面。

過濾提交lostpassword/retrievepassword表單後重定向到的URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );

常見問題

FAQs
檢視更多 >