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.


Top ↑

Source Source

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



Top ↑

User Contributed Notes User Contributed Notes

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