woocommerce_rest_performance_indicators_data_value
Usage
add_filter( 'woocommerce_rest_performance_indicators_data_value', 'wp_kama_woocommerce_rest_performance_indicators_data_value_filter', 10, 5 ); /** * Function for `woocommerce_rest_performance_indicators_data_value` filter-hook. * * @param $data * @param $stat * @param $report * @param $chart * @param $query_args * * @return */ function wp_kama_woocommerce_rest_performance_indicators_data_value_filter( $data, $stat, $report, $chart, $query_args ){ // filter... return $data; }
- $data
- -
- $stat
- -
- $report
- -
- $chart
- -
- $query_args
- -
Where the hook is called
woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php 433
'value' => apply_filters( 'woocommerce_rest_performance_indicators_data_value', $data, $stat, $report, $chart, $query_args ),
Where the hook is used in WooCommerce
woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php 78
add_filter( 'woocommerce_rest_performance_indicators_data_value', array( $this, 'format_data_value' ), 10, 5 );