wp_login_form() redirect same page
after logged in it wont redirect to previous page It’s because in your loginform() function, the ‘redirect’ => home_url() below sets the redirect URL to the homepage URL: $args = array(‘redirect’ => home_url(), ‘id_username’ => ‘user’,’id_password’ => ‘pass’,); So if you want to redirect to the previous page, then remove the redirect argument above, or … Read more