如何在Woocoomerce中获取“订单状态"更改日期? [英] How to get the Order status changed date in Woocoomerce?

查看:142
本文介绍了如何在Woocoomerce中获取“订单状态"更改日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取更改订单状态的日期.

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

例如123是订单ID,订单创建于2015年12月12日,订单确认于2015年12月13日.所以我需要知道订单ID是在哪个日期确认的吗?

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?

推荐答案

在woocommerce中,

In woocommerce,

尝试

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

这篇关于如何在Woocoomerce中获取“订单状态"更改日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆