random_password
apply_filters( ‘random_password’, string $password , int $length , bool $special_chars , bool $extra_special_chars )
过滤钩子:过滤随机生成的密码。
Filter Hook: Filters the randomly-generated password.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$password | (string) | 生成的密码。 |
$length | (int) | 要生成的密码长度。 |
$special_chars | (bool) | 是否包含标准特殊字符。 |
$extra_special_chars | (bool) | 是否包含其他特殊字符。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.3.0 | wp-includes/pluggable.php:2453 | 1 | 0 |
random_password 为WP2原创文章,链接:https://www.wp2.cn/hook/random_password/