WC_Report_Taxes_By_Date::output_report()

Output the report.


Description Description


Source Source

File: includes/admin/reports/class-wc-report-taxes-by-date.php

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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( $_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';
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.