Created
April 26, 2015 17:05
-
-
Save DigitalEssence/c097e0571963828945fe to your computer and use it in GitHub Desktop.
WordPress - WooCommerce - Change empty cart redirect button
This file contains 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 | |
//Change WooCommerce return to cart link | |
function change_empty_cart_button_url() { | |
return "/classes/"; | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'change_empty_cart_button_url' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment