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:
定义位置
  • wp-includes/pluggable.php
    , line 2616
引入
5.3.0
弃用

Filters the randomly-generated password.

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