WC_REST_Products_V2_Controller::api_get_meta_data() protected WC 1.0
Fetch meta data.
{} It's a method of the class: WC_REST_Products_V2_Controller{}
No Hooks.
Return
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->api_get_meta_data( $product, $context );
- $product(WC_Product) (required)
- Product object.
- $context(string) (required)
- Context of request, can be view or edit.
Code of WC_REST_Products_V2_Controller::api_get_meta_data() WC REST Products V2 Controller::api get meta data WC 5.0.0
protected function api_get_meta_data( $product, $context ) {
return $product->get_meta_data();
}