wpc_post_order
The WooCommerce Putler Connector wpc post order function.
Description
Parameters (2)
- 0. $order_id
- The order id.
- 1. $refund_id — Optional. (string) =>
''
- The refund id.
Usage
if ( !function_exists( 'wpc_post_order' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-putler-connector/woocommerce-putler-connector.php'; } // The order id. $order_id = null; // The refund id. $refund_id = ''; // NOTICE! Understand what this does before running. $result = wpc_post_order($order_id, $refund_id);
Defined (1)
The function is defined in the following location(s).
- /woocommerce-putler-connector.php
- function wpc_post_order( $order_id, $refund_id = '' ) {
- wpc_init();
- if (method_exists($GLOBALS[putler_connector], 'post_order') ) {
- $GLOBALS[putler_connector]->post_order( array('order_id' => $order_id, 'refund_id' => $refund_id) );
- }
- }