woocommerce_admin_report_data

woocommerce_admin_report_data

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_admin_report_data') is found 1 times:

  • /includes/admin/reports/class-wc-report-sales-by-date.php line 446
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
        // 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