woocommerce_webhook_http_args, $http_args, $arg, $this->get_id(
woocommerce_webhook_http_args, $http_args, $arg, $this->get_id(
Appears in: woocommerce.11.0.0
Hook Type: filter
Displaying hooks found in version: woocommerce.11.0.0apply_filters('woocommerce_webhook_http_args, $http_args, $arg, $this->get_id(') is found 1 times:
- /includes/class-wc-webhook.php line 352
* @param mixed $arg The first hook argument. * @param int $webhook_id The webhook ID. * @return array The filtered HTTP arguments. */ $http_args = apply_filters( 'woocommerce_webhook_http_args', $http_args, $arg, $this->get_id() ); // Add custom headers. $delivery_id = $this->get_new_delivery_id(); $http_args['headers']['X-WC-Webhook-Source'] = home_url( '/' ); // Since 2.6.0. $http_args['headers']['X-WC-Webhook-Topic'] = $this->get_topic(); $http_args['headers']['X-WC-Webhook-Resource'] = $this->get_resource();