woocommerce_api_xml_data filter-hookWC 1.0

Usage

add_filter( 'woocommerce_api_xml_data', 'wp_kama_woocommerce_api_xml_data_filter', 10, 2 );

/**
 * Function for `woocommerce_api_xml_data` filter-hook.
 * 
 * @param  $data         
 * @param  $root_element 
 *
 * @return 
 */
function wp_kama_woocommerce_api_xml_data_filter( $data, $root_element ){

	// filter...
	return $data;
}
$data
-
$root_element
-

Where the hook is called

WC_API_XML_Handler::generate_response()
woocommerce_api_xml_data
woocommerce/includes/legacy/api/v1/class-wc-api-xml-handler.php 108
$data = apply_filters( 'woocommerce_api_xml_data', $data, $root_element );

Where the hook is used in WooCommerce

Usage not found.