woocommerce_webhook_delivery
Usage
add_action( 'woocommerce_webhook_delivery', 'wp_kama_woocommerce_webhook_delivery_action', 10, 5 );
/**
* Function for `woocommerce_webhook_delivery` action-hook.
*
* @param $http_args
* @param $response
* @param $duration
* @param $arg
* @param $id
*
* @return void
*/
function wp_kama_woocommerce_webhook_delivery_action( $http_args, $response, $duration, $arg, $id ){
// action...
}
- $http_args
- -
- $response
- -
- $duration
- -
- $arg
- -
- $id
- -
Where the hook is called
woocommerce_webhook_delivery
woocommerce/includes/class-wc-webhook.php 371
do_action( 'woocommerce_webhook_delivery', $http_args, $response, $duration, $arg, $this->get_id() );
Where the hook is used in WooCommerce
woocommerce/src/Internal/Admin/Agentic/AgenticWebhookManager.php 81
add_action( 'woocommerce_webhook_delivery', array( $this, 'mark_first_event_delivered' ), 10, 5 );