Fixed variable description in REST API
This commit is contained in:
parent
c4806e63d1
commit
1f31de39d9
|
@ -135,7 +135,7 @@ class WC_REST_Product_Variations_Controller extends WC_REST_Products_Controller
|
||||||
'id' => $variation->get_id(),
|
'id' => $variation->get_id(),
|
||||||
'date_created' => wc_rest_prepare_date_response( $variation->get_date_created() ),
|
'date_created' => wc_rest_prepare_date_response( $variation->get_date_created() ),
|
||||||
'date_modified' => wc_rest_prepare_date_response( $variation->get_date_modified() ),
|
'date_modified' => wc_rest_prepare_date_response( $variation->get_date_modified() ),
|
||||||
'description' => $variation->get_variation_description(),
|
'description' => $variation->get_description(),
|
||||||
'permalink' => $variation->get_permalink(),
|
'permalink' => $variation->get_permalink(),
|
||||||
'sku' => $variation->get_sku(),
|
'sku' => $variation->get_sku(),
|
||||||
'price' => $variation->get_price(),
|
'price' => $variation->get_price(),
|
||||||
|
|
|
@ -547,7 +547,7 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller {
|
||||||
'date_created' => wc_rest_prepare_date_response( $variation->get_date_created() ),
|
'date_created' => wc_rest_prepare_date_response( $variation->get_date_created() ),
|
||||||
'date_modified' => wc_rest_prepare_date_response( $variation->get_date_modified() ),
|
'date_modified' => wc_rest_prepare_date_response( $variation->get_date_modified() ),
|
||||||
'permalink' => $variation->get_permalink(),
|
'permalink' => $variation->get_permalink(),
|
||||||
'description' => $variation->get_variation_description(),
|
'description' => $variation->get_description(),
|
||||||
'sku' => $variation->get_sku(),
|
'sku' => $variation->get_sku(),
|
||||||
'price' => $variation->get_price(),
|
'price' => $variation->get_price(),
|
||||||
'regular_price' => $variation->get_regular_price(),
|
'regular_price' => $variation->get_regular_price(),
|
||||||
|
|
Loading…
Reference in New Issue