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


Top ↑

Return Return

(WP_Error|WC_Data) The prepared item, or WP_Error object on failure.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php



Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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