# UTC } $result_time = date("Y-m-d H:i:s", $time); #order update Request time update_option('order_time_req', $result_time); $order_time_suc = get_option('order_time_suc'); # it has NULL or DATETIME if (isset($order_time_suc) && !empty($order_time_suc)) { $url = 'since=' . urlencode($order_time_suc); } $orderurl = "/api/v1/order/?"; $all_orders = $apicall->linksync_getOrder($url); $orderurl .= isset($url) ? $url : ''; if (isset($all_orders['pagination'])) { if (isset($all_orders['pagination']['results']) && $all_orders['pagination']['results'] != 0) { $vc_to_woocommerce_orders = $apicall->importOrderToWoocommerce($all_orders); } } if (isset($vc_to_woocommerce_orders) && !empty($vc_to_woocommerce_orders)) { update_option('order_time_suc', get_option('order_time_req')); } $order_message = 'Order Sync: Complete Successfully!!<br>'; } #----------End of Order Import----------# $product_sync_type = get_option('product_sync_type'); if (isset($product_sync_type) && $product_sync_type == 'vend_to_wc-way' || $product_sync_type == 'two_way') { # IT WILL NOT PROCESS IF DISABLED update_option('product_detail', NULL); #-----End Checking valid Webhook Callback -----# $LAIDKey = get_option('linksync_laid'); # Activated LAID KEY