WC_API_XML_Handler::__construct()
Add some response filters
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. |
WC_API_XML_Handler::__construct() WC API XML Handler:: construct code WC 7.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 ); }