wpc_post_order

The WooCommerce Putler Connector wpc post order function.

Description

wpc_post_order( $order_id, (string) $refund_id = '' ); 

Parameters (2)

0. $order_id
The order id.
1. $refund_id — Optional. (string) => ''
The refund id.

Usage

  1. if ( !function_exists( 'wpc_post_order' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-putler-connector/woocommerce-putler-connector.php'; 
  3.  
  4. // The order id. 
  5. $order_id = null; 
  6.  
  7. // The refund id. 
  8. $refund_id = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wpc_post_order($order_id, $refund_id); 
  12.  

Defined (1)

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

/woocommerce-putler-connector.php  
  1. function wpc_post_order( $order_id, $refund_id = '' ) { 
  2. wpc_init(); 
  3. if (method_exists($GLOBALS[putler_connector], 'post_order') ) { 
  4. $GLOBALS[putler_connector]->post_order( array('order_id' => $order_id, 'refund_id' => $refund_id) );