WC_REST_Products_V2_Controller::get_product_data( WC_Product $product, string $context = 'view' )

Get product data.


Description Description


Parameters Parameters

$product

(Required) Product instance.

$context

(Optional) Request context. Options: 'view' and 'edit'.

Default value: 'view'


Top ↑

Return Return

(array)


Top ↑

Source Source

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


			


Top ↑

User Contributed Notes User Contributed Notes

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