I have tried using the snippet
add_action('woocommerce_login_redirect', function($url){ $url = get_home_url(); // for shop url use $url = get_permalink( wc_get_page_id( 'shop' ) ) return $url;
}
But I get an error message:
The code snippet you are trying to save produced a fatal error on line 6:
syntax error, unexpected end of file, expecting ')'
Can you assist?