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:
6205889
)
adding filter for the woocommerce order confirmation page so the client can change...
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 27 Oct 2016 18:51:34 +0000
(14:51 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 27 Oct 2016 18:51:34 +0000
(14:51 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
507a08f
..
02a4790
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-255,8
+255,16
@@
function remove_billing_fields( $fields ) {
unset( $fields['billing_phone'] );
return $fields;
}
+
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 );
+
+function content_text($text, $order){
+ $page = get_post( 5237 );
+ return $page->post_content;
+
+}
function tracking_pixels(){
?>