woocommerce_admin_report_data

woocommerce_admin_report_data

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_report_data') is found 1 times:

  • /includes/admin/reports/class-wc-report-sales-by-date.php line 444
    		// Item items ordered in this period, even if refunded.
    		$this->report_data->total_items = absint( array_sum( wp_list_pluck( $this->report_data->order_items, 'order_item_count' ) ) );
    
    		// 3rd party filtering of report data
    		$this->report_data = apply_filters( 'woocommerce_admin_report_data', $this->report_data );
    	}
    
    	/**
    	 * Get the legend for the main chart sidebar.
    	 *
    	 * @return array