Deny auto login after checkout in woocommerce
-
Hi Team,
I am using woocommerce and ultimate elementor addon plugin in my website. When i do order from checkout page as a guest user and add the password from Create an account field on checkout page, Once order is placed it redirect to order-received page and showing me logged in. In menu it is showing me submenu for My account, order and logout which is created by me which i show basically when user is logged in. But don’t know why it showing logged in on checkout page after order is placed by guest user.I checked by adding this codes but it is not working.
add_filter( ‘woocommerce_registration_auth_new_customer’, ‘__return_false’ );Checked with doing settings in woocommerce Account & Privacy as well. But it is not fixed.
Can anyone tell me how it can be fix ?
- The topic ‘Deny auto login after checkout in woocommerce’ is closed to new replies.