Skip to content

Instantly share code, notes, and snippets.

@woogist
Created February 16, 2015 14:13
Show Gist options
  • Save woogist/6fd2d358bb2e51a25ac5 to your computer and use it in GitHub Desktop.
Save woogist/6fd2d358bb2e51a25ac5 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_add_to_cart_redirect', 'wc_custom_cart_redirect' );
function wc_custom_cart_redirect() {
return get_permalink( wc_get_page_id( 'shop' ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment