apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}_object", WC_Data $order , WP_REST_Request $request , bool $creating )
Filters an object before it is inserted via the REST API.
Description Description
The dynamic portion of the hook name, $this->post_type
, refers to the object type slug.
Parameters Parameters
- $order
-
Object object.
- $request
-
Request object.
- $creating
-
If is creating a new object.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php