random_password

SummerySummery

Filters the randomly-generated password.

Syntax

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

ParametersParameters

$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.

SourceSource

File: wp-includes/pluggable.php

ChangelogChangelog

Changelog
Version Description
5.3.0 Added the $length, $special_chars, and $extra_special_chars parameters.
3.0.0 Introduced.
Scroll to Top