wordpress / latest / hooks / random_password.html

apply_filters( 'random_password', string $password, int $length, bool $special_chars, bool $extra_special_chars )

Filters the randomly-generated password.

Parameters

$password string
The generated password.
$length int
The length of password to generate.
$special_chars bool
Whether to include standard special characters.
$extra_special_chars bool
Whether to include other special characters.

Source

File: wp-includes/pluggable.php. View all references

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

Used By

Used By Description

Changelog

Version Description
5.3.0 Added the $length, $special_chars, and $extra_special_chars parameters.
3.0.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/random_password