From: Laury GvR Date: Tue, 8 May 2018 15:37:10 +0000 (-0400) Subject: Add Woocommerce support X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=WP-Themes%2Fcapstone.git Add Woocommerce support --- 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;