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的一个过滤器钩子,它决定密码字段是显示还是隐藏。默认情况下,密码字段是隐藏的,但你可以使用这个过滤器来显示它们。

过滤密码字段的显示。

$show_password_fields = apply_filters( 'show_password_fields', true, $profile_user );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 18:32:58

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: