Snippets

Visser Labs Override the "Continue Shopping" button URL

Created by Michael Visser
<?php

// Redirect the Continue Shopping button to a custom landing page
function custom_woocommerce_continue_shopping_redirect() {

	return home_url() . '/shop/landing-page/';

}
add_filter( 'woocommerce_continue_shopping_redirect', 'custom_woocommerce_continue_shopping_redirect' );

?>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.