Merge pull request #26327 from sandeshjangam/patch-1

New after order details action added
This commit is contained in:
Ron Rennick 2020-08-28 15:27:17 -03:00 committed by GitHub
commit 00e38b51ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,7 @@
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 3.7.0
* @version 4.6.0
*/
defined( 'ABSPATH' ) || exit;
@ -101,6 +101,14 @@ if ( $show_downloads ) {
</section>
<?php
/**
* Action hook fired after the order details.
*
* @since 4.4.0
* @param WC_Order $order Order data.
*/
do_action( 'woocommerce_after_order_details', $order );
if ( $show_customer_details ) {
wc_get_template( 'order/order-details-customer.php', array( 'order' => $order ) );
}