WC_REST_Products_V2_Controller::api_get_related_ids( WC_Product $product, string $context )
Fetch related IDs.
Description Description
Parameters Parameters
- $product
-
(Required) Product object.
- $context
-
(Required) Context of request, can be
view
oredit
.
Return Return
(array)
Source Source
File: includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php