wp_ajax_generate_password() WordPress Function
The wp_ajax_generate_password() function is used to generate a password for a user. It takes two arguments: the user ID and the length of the password. The function returns a string containing the generated password.
wp_ajax_generate_password() #
Ajax handler for generating a password.
Source
File: wp-admin/includes/ajax-actions.php
function wp_ajax_generate_password() { wp_send_json_success( wp_generate_password( 24 ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |