From 8bf44a735201e64f3936cd30f92bcb6d4d0c849b Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Tue, 15 Oct 2019 07:53:55 -0700 Subject: [PATCH] Dont remove checkout sidebars --- inc/woocommerce.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 736d2743a..689005587 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -115,18 +115,6 @@ function newspack_woo_account_registration_heading() { } add_action( 'woocommerce_before_checkout_registration_form', 'newspack_woo_account_registration_heading' ); -/** - * Remove sidebar on Checkout page to reduce distractions. - */ -function newspack_woo_remove_checkout_sidebar( $is_active ) { - if ( is_page( wc_get_page_id( 'checkout' ) ) ) { - return false; - } - - return $is_active; -} -add_filter( 'is_active_sidebar', 'newspack_woo_remove_checkout_sidebar' ); - /** * Remove default WooCommerce wrapper. */