random_password

过滤钩子
apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars )
参数
  • (string) $password The generated password.
    Required:
  • (int) $length The length of password to generate.
    Required:
  • (bool) $special_chars Whether to include standard special characters.
    Required:
  • (bool) $extra_special_chars Whether to include other special characters.
    Required:
定义位置
相关勾子
lost_passwordretrieve_passwordallow_password_resetcheck_passwordcheck_passwords
相关方法
generate_random_passwordreset_passwordrandomcompat_substrwp_hash_passwordretrieve_passwordthe_post_password
引入
5.3.0
弃用
-

random_password – 这是一个生成随机密码的函数: 这个函数在为新用户自动生成密码或重设密码时很有用。

对随机生成的密码进行过滤。

return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 14:32:54

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

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

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