WC_Report_Taxes_By_Code::output_report()publicWC 1.0

Output the report.

Метод класса: WC_Report_Taxes_By_Code{}

Хуков нет.

Возвращает

null. Ничего (null).

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

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

Код WC_Report_Taxes_By_Code::output_report() WC 8.7.0

public function output_report() {

	$ranges = array(
		'year'       => __( 'Year', 'woocommerce' ),
		'last_month' => __( 'Last month', 'woocommerce' ),
		'month'      => __( 'This month', 'woocommerce' ),
	);

	$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( wp_unslash( $_GET['range'] ) ) : 'last_month';

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

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

	$hide_sidebar = true;

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