wp_ajax_nopriv_generate_password()
Handles generating a password in the no-privilege context via AJAX.
No Hooks.
Return
null
. Nothing (null).
Usage
wp_ajax_nopriv_generate_password();
Changelog
Since 5.7.0 | Introduced. |
wp_ajax_nopriv_generate_password() wp ajax nopriv generate password code WP 6.6.2
function wp_ajax_nopriv_generate_password() { wp_send_json_success( wp_generate_password( 24 ) ); }