Created
July 12, 2021 15:31
-
-
Save jorpdesigns/ee811e2cf2f67c1ca1323e03627aa319 to your computer and use it in GitHub Desktop.
Snippet to change WooCommerce cart URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_get_cart_url', 'custom_cart_url' ); | |
function custom_cart_url( $url ) { | |
$url = '/new-cart-link/'; | |
return $url; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment