random_password хук-фильтр . WP 3.0.0
Filters the randomly-generated password.
Использование
add_filter( 'random_password', 'filter_function_name_3503', 10, 4 ); function filter_function_name_3503( $password, $length, $special_chars, $extra_special_chars ){ // filter... return $password; }
- $password(строка)
- The generated password.
- $length(число)
- The length of password to generate.
- $special_chars(true/false)
- Whether to include standard special characters.
- $extra_special_chars(true/false)
- Whether to include other special characters.
Список изменений
С версии 3.0.0 | Введена. |
С версии 5.3.0 | Added the $length, $special_chars, and $extra_special_chars parameters. |
Где вызывается хук
random_password
wp-includes/pluggable.php 2464
return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );