Skip to content

Instantly share code, notes, and snippets.

View Alexio454's full-sized avatar

Alex Alexio454

  • Athens, Greece
View GitHub Profile
@BFTrick
BFTrick / shopping-redirect.php
Last active June 21, 2019 21:40
Change the Continue Shopping link on the WooCommerce Cart page
<?php
/**
* Return the permalink of the shop page for the continue shopping redirect filter
*
* @param string $return_to
* @return string
*/
function my_woocommerce_continue_shopping_redirect( $return_to ) {
return get_permalink( wc_get_page_id( 'shop' ) );
}