woocommerce_order_details_table

Displays order details in a table.

Description

woocommerce_order_details_table( (mixed) $order_id ); 

Parameters (1)

0. $order_id (mixed)
The order id.

Usage

  1. if ( !function_exists( 'woocommerce_order_details_table' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4. // The order id. 
  5. $order_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_order_details_table($order_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_order_details_table( $order_id ) { 
  2. if ( ! $order_id ) return; 
  3.  
  4. wc_get_template( 'order/order-details.php', array( 
  5. 'order_id' => $order_id,  
  6. ) );