Thank you this works. It is still not setting the password as the password the user enters.
‘user_pass’ => $pass, (Is there the hook that declares the new password?)
Sorry my coding knowledge is quite limited.
Thanks for the reply. I am getting the following error:
Your PHP code changes were rolled back due to an error on line 36 of file wp-content/themes/hello-elementor/functions.php. Please fix and try saving again.
syntax error, unexpected token “=”, expecting “)”
Thank you for your response. Could you elaborate on how I could make it so only once a user is logged in they can see the site. SO my login page is the first thing they see and then that redirects them to home.