WordPress at Your Fingertips
function is not described

wp_ajax_nopriv_generate_password() WP 5.7.0

Ajax handler for generating a password in the no-privilege context.

No Hooks.

Return

null. Nothing.

Usage

wp_ajax_nopriv_generate_password();

Changelog

Since 5.7.0 Introduced.

Code of wp_ajax_nopriv_generate_password() WP 5.8.2

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