WC_REST_Webhooks_V1_Controller::prepare_item_for_response( int $id, WP_REST_Request $request )
Prepare a single webhook output for response.
Description Description
Parameters Parameters
- $id
-
(Required) Webhook ID or object.
- $request
-
(Required) Request object.
Return Return
(WP_REST_Response) $response Response data.
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php