WordPress at Your Fingertips
function is not described

WC_API_XML_Handler::__construct() public WC 2.1

Add some response filters

{} It's a method of the class: WC_API_XML_Handler{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 2.1 Introduced.

Code of WC_API_XML_Handler::__construct() WC 5.7.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 );
}