From c15ade6bfafc05d74ba1492736c9791ae1e46f8c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 27 Oct 2016 14:51:34 -0400 Subject: [PATCH] adding filter for the woocommerce order confirmation page so the client can change the text --- functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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(){ ?> -- 2.17.1