apply_filters( "woocommerce_rest_pre_insert_{$this->post_type}", WC_Coupon $coupon , WP_REST_Request $request )
Filter the query_vars used in get_items
for the constructed query.
Description Description
The dynamic portion of the hook name, $this->post_type, refers to post_type of the post being prepared for insertion.
Parameters Parameters
- $coupon
-
The coupon object.
- $request
-
Request object.
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php