Controller::get_order_number( int $order_id )
Get the order number for an order. If no filter is present for woocommerce_order_number
, we can just return the ID.
Description Description
Returns the parent order number if the order is actually a refund.
Parameters Parameters
- $order_id
-
(Required) Order ID.
Return Return
(string)
Source Source
File: packages/woocommerce-admin/src/API/Reports/Controller.php