Add Woocommerce support develop
authorLaury GvR <laury@gaslightmedia.com>
Tue, 8 May 2018 15:37:10 +0000 (11:37 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 8 May 2018 15:37:10 +0000 (11:37 -0400)
functions.php

index b7bd50d..1f31409 100644 (file)
@@ -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;