Skip to content

Instantly share code, notes, and snippets.

@xardit
Created June 7, 2023 20:45
Show Gist options
  • Select an option

  • Save xardit/6bbfad5fdba6cc12a742590cb034cbef to your computer and use it in GitHub Desktop.

Select an option

Save xardit/6bbfad5fdba6cc12a742590cb034cbef to your computer and use it in GitHub Desktop.
WooCommerce - Change return to shop link, send to homepage instead
<?php
add_filter( 'woocommerce_return_to_shop_redirect', 'mysite_change_return_shop_url' );
function mysite_change_return_shop_url() {
return home_url();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment