Supply order to thankyou text filter, if available

This commit is contained in:
Illimar Tambek 2014-04-18 15:33:02 +03:00
parent cc2a6b75fe
commit 79a40ffd06
1 changed files with 2 additions and 2 deletions

View File

@ -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; ?>