Deprecated functions `WC_Cart::get_cart_url` and WC_Cart::get_checkout_url
-
quicklink/plugin-compatibility/woocommerce.php
// Do not preload the cart, as it is usally ressource heavy. $wc_ignores[] = '^' . preg_quote( $woocommerce->cart->get_cart_url(), '/' ); // Do not preload the checkout url for the same reason as above. $wc_ignores[] = '^' . preg_quote( $woocommerce->cart->get_checkout_url(), '/' );
would be:
$wc_ignores[] = '^' . preg_quote( wc_get_cart_url(), '/' ); $wc_ignores[] = '^' . preg_quote( wc_get_checkout_url(), '/' );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Deprecated functions `WC_Cart::get_cart_url` and WC_Cart::get_checkout_url’ is closed to new replies.