WooParc_orderstatus

Get order status from order_id.

Description

WooParc_orderstatus( $order_id ); 

Parameters (1)

0. $order_id
The order id.

Usage

  1. if ( !function_exists( 'WooParc_orderstatus' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-postnl-parcelware/inc/funct-export.php'; 
  3.  
  4. // The order id. 
  5. $order_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = WooParc_orderstatus($order_id); 
  9.  

Defined (1)

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

/inc/funct-export.php  
  1. function WooParc_orderstatus($order_id) { 
  2. $order = new WC_Order($order_id); 
  3. return $order->status;