Site icon Qaisar Satti's Blogs

woocommerce check order status programmatically

Today we talk about how to check WooCommerce order status programmatically. Sometimes you need to check order status programmatically. You can use the following code to get order status. So let start with our example.

$orderId = 10;
$orderDetail = new WC_Order( $order_id );
$orderDetail->get_status();
Exit mobile version