yit_get_order_id

Retrieve the order id.

Description

yit_get_order_id( (WC_Order) $order ); 

Parameters (1)

0. $order (WC_Order)
The order.

Usage

  1. if ( !function_exists( 'yit_get_order_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-compare/plugin-fw/yit-woocommerce-compatibility.php'; 
  3.  
  4. // The order. 
  5. $order = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = yit_get_order_id($order); 
  9.  

Defined (1)

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

/plugin-fw/yit-woocommerce-compatibility.php  
  1. function yit_get_order_id( $order ) { 
  2. return yit_get_prop( $order, 'id' );