From: Anthony Talarico Date: Thu, 27 Oct 2016 18:51:34 +0000 (-0400) Subject: adding filter for the woocommerce order confirmation page so the client can change... X-Git-Tag: v1.0.0^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c15ade6bfafc05d74ba1492736c9791ae1e46f8c;p=WP-Themes%2Fcapstone.git adding filter for the woocommerce order confirmation page so the client can change the text --- diff --git a/functions.php b/functions.php index 507a08f..02a4790 100644 --- 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(){ ?>