woocommerce_api_webhook_delivery_response

The WooCommerce woocommerce api webhook delivery response hook.

Description

apply_filters( 'woocommerce_api_webhook_delivery_response', (unknown) $delivery_log, (unknown) $id, (unknown) $fields, (unknown) $log, (unknown) $webhook_id, (unknown) $instance ); 

Parameters (6)

0. $delivery_log (unknown)
The delivery log.
1. $id (unknown)
The id.
2. $fields (unknown)
The fields.
3. $log (unknown)
The log.
4. $webhook_id (unknown)
The webhook id.
5. $instance (unknown)
The instance.

Usage

To run the hook, copy the example below.
  1. $delivery_log = apply_filters( 'woocommerce_api_webhook_delivery_response', $delivery_log, $id, $fields, $log, $webhook_id, $instance ); 
  2.  
  3. if ( !empty( $delivery_log ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_api_webhook_delivery_response callback 
  2. function filter_woocommerce_api_webhook_delivery_response( $delivery_log, $id, $fields, $log, $webhook_id, $instance ) { 
  3. // make filter magic happen here... 
  4. return $delivery_log
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_api_webhook_delivery_response', 'filter_woocommerce_api_webhook_delivery_response', 10, 6 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_api_webhook_delivery_response', 'filter_woocommerce_api_webhook_delivery_response', 10, 6 ); 

Defined (2)

The filter is defined in the following location(s).

/includes/api/legacy/v3/class-wc-api-webhooks.php  
  1. return array( 'webhook_delivery' => apply_filters( 'woocommerce_api_webhook_delivery_response', $delivery_log, $id, $fields, $log, $webhook_id, $this ) ); 
/includes/api/legacy/v2/class-wc-api-webhooks.php  
  1. return array( 'webhook_delivery' => apply_filters( 'woocommerce_api_webhook_delivery_response', $delivery_log, $id, $fields, $log, $webhook_id, $this ) );