WC_REST_Orders_V2_Controller::get_product_id( array $posted, string $action = 'create' )
Gets the product ID from the SKU or posted ID.
Description Description
Parameters Parameters
- $posted
-
(Required) Request data.
- $action
-
(Optional) 'create' to add line item or 'update' to update it.
Default value: 'create'
Return Return
(int)
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php