woocommerce_webhook_http_args

woocommerce_webhook_http_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_webhook_http_args') is found 1 times:

  • /includes/class-wc-webhook.php line 342
    			),
    			'cookies'     => array(),
    		);
    
    		$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();