From e2f96bb61a9ef22c8736c61479dd8d75378edd40 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 8 May 2018 11:37:10 -0400 Subject: [PATCH] Add Woocommerce support --- functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions.php b/functions.php index b7bd50d..1f31409 100644 --- a/functions.php +++ b/functions.php @@ -282,6 +282,12 @@ add_filter( 'woocommerce_billing_fields', 'remove_billing_fields', 20 ); add_action( 'woocommerce_thankyou', 'tracking_pixels' ); add_filter( 'woocommerce_thankyou_order_received_text', 'content_text', 10, 2 ); +add_action( 'after_setup_theme', 'woocommerce_support' ); +function woocommerce_support() { + add_theme_support( 'woocommerce' ); +} + + function content_text($text, $order){ $page = get_post( 5237 ); return $page->post_content; -- 2.17.1