wordpresswoocommercewoothemes

How to get the Order status changed date in Woocoomerce?


I need to get the date in which the order status is changed.

For example 123 is order id , the order is created in 12-12-2015 , and order is confirmed in 13-12-2015 . So I need to know in which date order is confirmed from order id?


Solution

  • In woocommerce,

    Try

    $order = new WC_Order($order_id);
    echo $order->modified_date;