How to set the redirection after the customer login by using the Jigoshop login widget?

Q: How to set the redirect page after the customer login? I am using the widget Jigoshop Login. For example, I want to just redirect to the “Home” Page ( http://www.xyz.com) which is set up in Setting > Reading .

A: You can use the filter jigoshop_widget_login_redirect for that, something like this:

    add_filter('jigoshop_widget_login_redirect', 'mytheme_widget_login_redirect');
    function mytheme_widget_login_redirect($redirect) {
         $redirect = home_url();