wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_ajax_nopriv_generate_password › WordPress Function

Since5.7.0
Deprecatedn/a
wp_ajax_nopriv_generate_password ( No parameters )
Defined at:
Codex:

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



Source

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