apply_filters( "woocommerce_rest_prepare_{$this->post_type}", WP_REST_Response $response , WP_Post $post , WP_REST_Request $request )
Filter the data for a response.
Description Description
The dynamic portion of the hook name, $this->post_type, refers to post_type of the post being prepared for the response.
Parameters Parameters
- $response
-
The response object.
- $post
-
Post object.
- $request
-
Request object.
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php