generate_random_password()WP 3.0.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use wp_generate_password() instead.

Generates a random password.

No Hooks.

Return

null. Nothing (null).

Usage

generate_random_password( $len );
$len(int)
The length of password to generate.
Default: 8

Notes

Changelog

Since 3.0.0 Introduced.
Deprecated since 3.0.0 Use wp_generate_password()

generate_random_password() code WP 6.5.4

function generate_random_password( $len = 8 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' );
	return wp_generate_password( $len );
}