wpc_update_sub_status
The WooCommerce Putler Connector wpc update sub status function.
Description
Parameters (3)
- 0. $sub_id
- The sub id.
- 1. $old_status
- The old status.
- 2. $new_status
- The new status.
Usage
if ( !function_exists( 'wpc_update_sub_status' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce-putler-connector/woocommerce-putler-connector.php'; } // The sub id. $sub_id = null; // The old status. $old_status = null; // The new status. $new_status = null; // NOTICE! Understand what this does before running. $result = wpc_update_sub_status($sub_id, $old_status, $new_status);
Defined (1)
The function is defined in the following location(s).
- /woocommerce-putler-connector.php
- function wpc_update_sub_status( $sub_id, $old_status, $new_status ) {
- $sub_status = $new_status;
- wpc_init();
- if (method_exists($GLOBALS[putler_connector], 'post_order') ) {
- $GLOBALS[putler_connector]->post_order( array('sub_id' => $sub_id,
- 'old_status' => $old_status,
- 'new_status' => $new_status) );
- }
- }