woocommerce_analytics_variations_stats_select_query filter-hookWC 1.0

Usage

add_filter( 'woocommerce_analytics_variations_stats_select_query', 'wp_kama_woocommerce_analytics_variations_stats_select_query_filter', 10, 2 );

/**
 * Function for `woocommerce_analytics_variations_stats_select_query` filter-hook.
 * 
 * @param  $results 
 * @param  $args    
 *
 * @return 
 */
function wp_kama_woocommerce_analytics_variations_stats_select_query_filter( $results, $args ){

	// filter...
	return $results;
}
$results
-
$args
-

Where the hook is called

Query::get_data()
woocommerce/src/Admin/API/Reports/Variations/Stats/Query.php 53
return apply_filters( 'woocommerce_analytics_variations_stats_select_query', $results, $args );

Where the hook is used in WooCommerce

woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php 45
add_filter( 'woocommerce_analytics_variations_stats_select_query', array( $this, 'set_default_report_data' ) );