wcdn_get_orders

Get orders as array.

Description

wcdn_get_orders(); 

Every order is a normal WC_Order instance.


Usage

  1. if ( !function_exists( 'wcdn_get_orders' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-print-invoice-delivery-note/includes/wcdn-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcdn_get_orders(); 
  7.  

Defined (1)

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

/includes/wcdn-template-functions.php  
  1. function wcdn_get_orders() { 
  2. global $wcdn; 
  3. return $wcdn->print->orders;