show_password_fields

過濾鉤子
apply_filters( 'show_password_fields', true, $profile_user )
引數
  • (bool) $show Whether to show the password fields. Default true.
    Required:
  • (WP_User) $profile_user User object for the current user to edit.
    Required:
定義位置
相關勾子
allow_password_resetpassword_resetpost_password_expirescheck_passwordslostpassword_errors
相關方法
wp_lostpassword_urlpost_password_requiredwp_hash_passwordwp_get_password_hintcheck_password_reset_keyget_the_password_form
引入
4.4.0
棄用
-

show_password_fields是WordPress的一個過濾器鉤子,它決定密碼欄位是顯示還是隱藏。預設情況下,密碼欄位是隱藏的,但你可以使用這個過濾器來顯示它們。

過濾密碼欄位的顯示。

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

常見問題

FAQs
檢視更多 >