WC_Report_Customers::get_export_button() public WC 1.0
Output an export link.
{} Это метод класса: WC_Report_Customers{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Report_Customers = new WC_Report_Customers(); $WC_Report_Customers->get_export_button();
Код WC_Report_Customers::get_export_button() WC Report Customers::get export button WC 5.0.0
public function get_export_button() {
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( wp_unslash( $_GET['range'] ) ) : '7day';
?>
<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="chart"
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>"
data-groupby="<?php echo esc_attr( $this->chart_groupby ); ?>"
>
<?php esc_html_e( 'Export CSV', 'woocommerce' ); ?>
</a>
<?php
}