Filters the randomly-generated password.
Parameters
-
$passwordstring -
The generated password.
-
$lengthint -
The length of password to generate.
-
$special_charsbool -
Whether to include standard special characters.
-
$extra_special_charsbool -
Whether to include other special characters.
Source
return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );
Example migrated from Codex:
Form a new password by appending your own password string to the generated password.