wcdn_get_order

Get an order.

Description

wcdn_get_order( (null) $order_id = null ); 

Parameters (1)

0. $order_id — Optional. (null) => null
The order id.

Usage

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

Defined (1)

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

/woocommerce-delivery-notes.php  
  1. function wcdn_get_order( $order_id = null ) { 
  2. global $wcdn; 
  3. return $wcdn->print->get_order( $order_id );