diff --git a/src/BlockTypes/OrderConfirmation/Status.php b/src/BlockTypes/OrderConfirmation/Status.php index d1b5eff77c9..847a90d841d 100644 --- a/src/BlockTypes/OrderConfirmation/Status.php +++ b/src/BlockTypes/OrderConfirmation/Status.php @@ -64,7 +64,7 @@ protected function render_content( $order, $permission = false, $attributes = [] return '

' . wp_kses_post( apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woo-gutenberg-products-block' ), null ) ) . '

'; } - $content = $this->get_hook_content( 'woocommerce_before_thankyou', [ $order ] ); + $content = $this->get_hook_content( 'woocommerce_before_thankyou', [ $order->get_id() ] ); $status = $order->get_status(); // Unlike the core handling, this includes some extra messaging for completed orders so the text is appropriate for other order statuses.