How to send user password reset link to their phone number instead of email

To resolve the error in your code for sending a password reset link via SMS using Twilio, here’s a refined version of your function with necessary error handling and dependencies: function send_password_reset_sms( $user_login, $user_data ) { $phone_number = get_user_meta( $user_data->ID, ‘phone_number’, true ); if ( ! empty( $phone_number ) ) { $reset_key = get_password_reset_key( $user_data … Read more

WordPress user password reset not working

Check the error.log files in site root and wp-admin folder for any clues. It’s also possible a plugin is interfering with the mail() command – maybe one that changes the login? You could temp disable all plugins and then try the password reset process. If it works then, enable plugins one at a time to … Read more