generate_random_password( int $len = 8 )
This function has been deprecated. Use wp_generate_password() instead.
Generates a random password.
Description
See also
Parameters
- $len
-
(int) (Optional) The length of password to generate.
Default value: 8
Source
File: wp-includes/ms-deprecated.php
function generate_random_password( $len = 8 ) { _deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' ); return wp_generate_password( $len ); }
Changelog
Version | Description |
---|---|
3.0.0 | Use wp_generate_password() |
MU (3.0.0) | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/generate_random_password