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.


Top ↑

Source Source

File: includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php



Top ↑

User Contributed Notes User Contributed Notes

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