wcdn_order_number

The WooCommerce Print Invoices & Delivery Notes wcdn order number function.

Description

wcdn_order_number(); 

Usage

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

Defined (1)

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

/woocommerce-delivery-notes.php  
  1. function wcdn_order_number() { 
  2. global $wcdn; 
  3.  
  4. // Trim the hash to have a clean number but still  
  5. // support any filters that were applied before. 
  6. $order_number = ltrim($wcdn->print->get_order()->get_order_number(), '#'); 
  7. echo $order_number;