woocommerce_analytics_stock_stats_query
Usage
add_filter( 'woocommerce_analytics_stock_stats_query', 'wp_kama_woocommerce_analytics_stock_stats_query_filter' ); /** * Function for `woocommerce_analytics_stock_stats_query` filter-hook. * * @param $results * * @return */ function wp_kama_woocommerce_analytics_stock_stats_query_filter( $results ){ // filter... return $results; }
- $results
- -
Where the hook is called
woocommerce/src/Admin/API/Reports/Stock/Stats/Query.php 27
return apply_filters( 'woocommerce_analytics_stock_stats_query', $results );