Cart Items Removed – (wp_set_auth_cookie)
-
A custom function is in place using “wp_set_auth_cookie” to log in programatically.
When we use this, the cart is emptied (instead or merging with persistent cart).
Steps:
– Add products to cart as a guest user
– Log in via “wp_set_auth_cookie” and redirect user to checkout page
– Cart is emptyThanks!
The topic ‘Cart Items Removed – (wp_set_auth_cookie)’ is closed to new replies.