woocommerce_analytics_variations_stats_select_query
Использование
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
- -
Где вызывается хук
woocommerce/src/Admin/API/Reports/Variations/Stats/Query.php 57
return apply_filters( 'woocommerce_analytics_variations_stats_select_query', $results, $args );
Где используется хук в 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' ) );