Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created June 15, 2017 20:23
Show Gist options
  • Save WPprodigy/0cc8414fb1fb2030e6a59a27e3f53d69 to your computer and use it in GitHub Desktop.
Save WPprodigy/0cc8414fb1fb2030e6a59a27e3f53d69 to your computer and use it in GitHub Desktop.
Add "continue shopping" link to the cart page.
add_action( 'woocommerce_after_cart_totals', 'wc_ninja_continue_shopping_button' );
function wc_ninja_continue_shopping_button() {
$shop_page_url = wc_get_page_permalink( 'shop' );
echo '<a href="' . $shop_page_url . '" class="button">Continue Shopping</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment