woocommerce_webhook_delivery

The WooCommerce woocommerce webhook delivery hook.

Description

do_action( 'woocommerce_webhook_delivery', (unknown) $http_args, (unknown) $response, (unknown) $duration, (unknown) $arg, (unknown) $this_id ); 

Parameters (5)

0. $http_args (unknown)
The http args.
1. $response (unknown)
The response.
2. $duration (unknown)
The duration.
3. $arg (unknown)
The arg.
4. $this_id (unknown)
The this id.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_webhook_delivery', $http_args, $response, $duration, $arg, $this_id ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_webhook_delivery callback 
  2. function action_woocommerce_webhook_delivery( $http_args, $response, $duration, $arg, $this_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_webhook_delivery', 'action_woocommerce_webhook_delivery', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_webhook_delivery', 'action_woocommerce_webhook_delivery', 10, 5 ); 

Defined (1)

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

/includes/class-wc-webhook.php  
  1. do_action( 'woocommerce_webhook_delivery', $http_args, $response, $duration, $arg, $this->id );