WC_Report_Taxes_By_Code::get_export_button()
Output an export link.
Метод класса: WC_Report_Taxes_By_Code{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Report_Taxes_By_Code = new WC_Report_Taxes_By_Code(); $WC_Report_Taxes_By_Code->get_export_button();
Код WC_Report_Taxes_By_Code::get_export_button() WC Report Taxes By Code::get export button WC 9.4.2
<?php public function get_export_button() { $current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( wp_unslash( $_GET['range'] ) ) : 'last_month'; ?> <a href="#" download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo esc_attr( date_i18n( 'Y-m-d', current_time( 'timestamp' ) ) ); ?>.csv" class="export_csv" data-export="table" > <?php esc_html_e( 'Export CSV', 'woocommerce' ); ?> </a> <?php }