Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update params for woocommerce_before_thankyou to mirror core hook (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Nov 21, 2023
1 parent 14f4032 commit e3967a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlockTypes/OrderConfirmation/Status.php
Expand Up @@ -64,7 +64,7 @@ protected function render_content( $order, $permission = false, $attributes = []
return '<p>' . wp_kses_post( apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woo-gutenberg-products-block' ), null ) ) . '</p>';
}

$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.
Expand Down

0 comments on commit e3967a1

Please sign in to comment.