Woocommerce login to specific page or referrer
So the solution was actually pretty simple. First I needed to modify my custom member login redirect to include the redirect_to portion in the redirect URL: function pb4r_redirect() { global $current_user; $refer=urlencode($_SERVER[“REQUEST_URI”]); $okay_pages = array(4, 10, 12, 13, 191, 200, 1380, 1381, 1382, 1383, 1449, 1631, 1643, 1652, 1653, 1654, 1666, 1718, 1725, 1840, ‘Checkout’, … Read more