adding filter for the woocommerce order confirmation page so the client can change...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Oct 2016 18:51:34 +0000 (14:51 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 27 Oct 2016 18:51:34 +0000 (14:51 -0400)
functions.php

index 507a08f..02a4790 100644 (file)
@@ -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(){
 ?>