projects
/
WP-Themes
/
capstone.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b21924
)
Add Woocommerce support
develop
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 8 May 2018 15:37:10 +0000
(11:37 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 8 May 2018 15:37:10 +0000
(11:37 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
b7bd50d
..
1f31409
100644
(file)
--- 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;