Warning: This method has been deprecated. Webhooks deliveries logs now uses logging system instead.
WC_API_Webhooks::get_webhook_deliveries( string $webhook_id, string|null $fields = null )
Get deliveries for a webhook
Description Description
Parameters Parameters
- $webhook_id
-
(Required) webhook ID
- $fields
-
(Optional) fields to include in response
Default value: null
Return Return
(array|WP_Error)
Source Source
File: includes/legacy/api/v2/class-wc-api-webhooks.php
public function get_webhook_deliveries( $webhook_id, $fields = null ) { // Ensure ID is valid webhook ID $webhook_id = $this->validate_request( $webhook_id, 'shop_webhook', 'read' ); if ( is_wp_error( $webhook_id ) ) { return $webhook_id; } return array( 'webhook_deliveries' => array() ); }
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Webhooks deliveries logs now uses logging system. |
2.2 | Introduced. |