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