WC_REST_Order_Refunds_Controller::prepare_object_for_database( WP_REST_Request $request, bool $creating = false )
Prepares one object for create or update operation.
Description Description
Parameters Parameters
- $request
-
(Required) Request object.
- $creating
-
(Optional) If is creating a new object.
Default value: false
Return Return
(WP_Error|WC_Data) The prepared item, or WP_Error object on failure.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |