Supply order to thankyou text filter, if available
This commit is contained in:
parent
cc2a6b75fe
commit
79a40ffd06
|
@ -33,7 +33,7 @@ if ( $order ) : ?>
|
|||
|
||||
<?php else : ?>
|
||||
|
||||
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ) ); ?></p>
|
||||
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), $order ); ?></p>
|
||||
|
||||
<ul class="order_details">
|
||||
<li class="order">
|
||||
|
@ -64,6 +64,6 @@ if ( $order ) : ?>
|
|||
|
||||
<?php else : ?>
|
||||
|
||||
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ) ); ?></p>
|
||||
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), null ); ?></p>
|
||||
|
||||
<?php endif; ?>
|
Loading…
Reference in New Issue