WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Report_Sales_By_Date::output_report() public WC 1.0

Output the report.

Это метод класса: WC_Report_Sales_By_Date{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WC_Report_Sales_By_Date = new WC_Report_Sales_By_Date();
$WC_Report_Sales_By_Date->output_report();

Код WC_Report_Sales_By_Date::output_report() WC 4.5.2

woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php
<?php
public function output_report() {
	$ranges = array(
		'year'       => __( 'Year', 'woocommerce' ),
		'last_month' => __( 'Last month', 'woocommerce' ),
		'month'      => __( 'This month', 'woocommerce' ),
		'7day'       => __( 'Last 7 days', 'woocommerce' ),
	);

	$this->chart_colours = array(
		'sales_amount'     => '#b1d4ea',
		'net_sales_amount' => '#3498db',
		'average'          => '#b1d4ea',
		'net_average'      => '#3498db',
		'order_count'      => '#dbe1e3',
		'item_count'       => '#ecf0f1',
		'shipping_amount'  => '#5cc488',
		'coupon_amount'    => '#f1c40f',
		'refund_amount'    => '#e74c3c',
	);

	$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( wp_unslash( $_GET['range'] ) ) : '7day'; // phpcs:ignore WordPress.Security.NonceVerification.Recommended

	if ( ! in_array( $current_range, array( 'custom', 'year', 'last_month', 'month', '7day' ), true ) ) {
		$current_range = '7day';
	}

	$this->check_current_range_nonce( $current_range );
	$this->calculate_current_range( $current_range );

	include WC()->plugin_path() . '/includes/admin/views/html-report-by-date.php';
}