• I am using the following code to redirect the user to the home page after they login, but the primvary nav doesn’t update to the logged in users nav after the redirect; I am logged in technically because if I refresh or go to another page the correct nav loads. Any idea how to fix that?

    add_filter('woocommerce_login_redirect', 'wc_login_redirect');
    function wc_login_redirect( $redirect_to ) {
         $redirect_to = home_url();
         return $redirect_to;
    }
Viewing 1 replies (of 1 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    WooCommerce doesn’t influence the primary nav of your site, which is likely powered by the theme you’re using or a 3rd party plugin altogether. It might also be worth ensuring that there’s no caching involved.

Viewing 1 replies (of 1 total)
  • The topic ‘Login redirect to home page doesn’t update nav’ is closed to new replies.