Change Return to Shop Link on WooCommerce

The following example will change the “Return to Shop” link on WooCommerce to the homepage . You can change the url by changing the parameter $url to whatever url you want .

Copy and paste the following snippet inside your functions.php on your child theme.

add_filter( 'woocommerce_return_to_shop_redirect', 'wpslash_change_return_shop_url');
function wpslash_change_return_shop_url() 
$url = home_url();
return $url;