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

Filters the randomly-generated password.

Parameters Parameters


(string) The generated password.


(int) The length of password to generate.


(bool) Whether to include standard special characters.


(bool) Whether to include other special characters.

Top ↑

Source Source

File: wp-includes/pluggable.php

View on Trac

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.