wp_ajax_nopriv_generate_password()

In this article

Handles generating a password in the no-privilege context via AJAX.

Source

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

Changelog

VersionDescription
5.7.0Introduced.

User Contributed Notes

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