random_password

Advertisement

Summery Summery

Filters the randomly-generated password.

Syntax Syntax

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

Parameters Parameters

$password

The generated password.

$length

The length of password to generate.

$special_chars

Whether to include standard special characters.

$extra_special_chars

Whether to include other special characters.

Source Source

File: wp-includes/pluggable.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply