wp_ajax_generate_password()

In this article

Handles generating a password via AJAX.

Source

function wp_ajax_generate_password() {
	wp_send_json_success( wp_generate_password( 24 ) );
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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