WC_REST_Products_V1_Controller::prepare_item_for_database( WP_REST_Request $request )
Prepare a single product for create or update.
Description Description
Parameters Parameters
- $request
-
(Required) Request object.
Return Return
(WP_Error|stdClass) $data Post object.
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php