Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
add_action('retrieve_password', function($user_login){ error_log('[KITSPREAD-TEST] retrieve_password fired for: ' . $user_login); }, 10, 1); // --------------------------- // Diagnostic logging: lost password flow // --------------------------- add_action('init', function(){ error_log('[KITSPREAD-DEBUG] init fired; REQUEST_URI=' . ($_SERVER['REQUEST_URI'] ?? '') ); }); // Log when wp-login.php receives the lostpassword POST add_action('login_form_lostpassword', function() { error_log('[KITSPREAD-DEBUG] login_form_lostpassword fired; REQUEST_METHOD=' . ($_SERVER['REQUEST_METHOD'] ?? '') ); if ($_SERVER['REQUEST_METHOD'] === 'POST') { error_log('[KITSPREAD-DEBUG] lostpassword POST payload: ' . print_r($_POST, true)); } }, 1); // This runs when WP attempts to process the lost password request (before sending) add_action('lostpassword_post', function($errors) { error_log('[KITSPREAD-DEBUG] lostpassword_post fired; errors=' . (is_wp_error($errors) ? implode('|', $errors->get_error_codes()) : 'none') ); }, 5, 1); // This runs inside wp-login.php when WordPress calls retrieve_password() add_action('retrieve_password', function($user_login) { error_log('[KITSPREAD-DEBUG] retrieve_password fired for user_login: ' . $user_login); }, 10, 1); // Log any mail failures from wp_mail add_action('wp_mail_failed', function($wp_error) { error_log('[KITSPREAD-DEBUG] wp_mail_failed: ' . print_r($wp_error, true)); });
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.