How to login without password
-
Add below function for functions.php and pass parameter email :
function login_user($email){ $user = $this->get_user_info_by_login($email); $user_id = $user->ID; wp_set_current_user($user_id, $email); wp_set_auth_cookie($user_id); do_action('wp_login', $email); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to login without password’ is closed to new replies.