WordPress at a glance
function is not described

generate_random_password() WP 3.0.0

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

Generates a random password.

  • See: wp_generate_password()

No Hooks.


Nothing (null).


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

Code of generate random password: wp-includes/ms-deprecated.php WP 5.2.1

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