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'


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.