wp_posts table post_status update with processing instead of wc-processing

Viewed 96

I am working for a payment gateway I am writing bellow code

$order = new WC_Order($order_id);   
if($data && $data->status == "ACCEPTED")
{
     wc_maybe_reduce_stock_levels($order_id);
     $order -> update_status('Processing');
     $order -> payment_complete();

I notice the wp_posts table post_status updated with processing while I am updating status from the web panel GUI it updated with wc-processing

Image 1

In the above image id 79 updated from the panel and 80 updated programmatically


In both case wp_wc_order_stats updated with wc-processing

enter image description here

When the post_status updated with processing it's not displayed in the order list in the panel

enter image description here

I am not sure is it a bug or I am making any mistakes but this works for an earlier version.

  • My current wp version 5.3.2

  • My current wc version 4.0.1

0 Answers
Related