woocommerce_admin_report_chart_data

woocommerce_admin_report_chart_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_report_chart_data') is found 1 times:

  • /includes/admin/reports/class-wc-report-sales-by-date.php line 677
    				$data['tax_amounts'][ $order_amount_key ][1];
    		}
    
    		// 3rd party filtering of report data.
    		$data = apply_filters( 'woocommerce_admin_report_chart_data', $data );
    
    		// Encode in json format.
    		$chart_data = wp_json_encode(
    			array(
    				'order_counts'        => array_values( $data['order_counts'] ),
    				'order_item_counts'   => array_values( $data['order_item_counts'] ),