WC_API_XML_Handler::__construct()publicWC 2.1

Add some response filters

Method of the class: WC_API_XML_Handler{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_API_XML_Handler = new WC_API_XML_Handler();
$WC_API_XML_Handler->__construct();

Changelog

Since 2.1 Introduced.

WC_API_XML_Handler::__construct() code WC 8.9.0

public function __construct() {

	// tweak sales report response data
	add_filter( 'woocommerce_api_report_response', array( $this, 'format_sales_report_data' ), 100 );

	// tweak product response data
	add_filter( 'woocommerce_api_product_response', array( $this, 'format_product_data' ), 100 );
}