woocommerce_report_export_email_labels filter-hookWC 9.9.0

Used to customise report email labels.

Usage

add_filter( 'woocommerce_report_export_email_labels', 'wp_kama_woocommerce_report_export_email_labels_filter' );

/**
 * Function for `woocommerce_report_export_email_labels` filter-hook.
 * 
 * @param string[] $labels An array of labels.
 *
 * @return string[]
 */
function wp_kama_woocommerce_report_export_email_labels_filter( $labels ){

	// filter...
	return $labels;
}
$labels(string[])
An array of labels.

Changelog

Since 9.9.0 Introduced.

Where the hook is called

ReportCSVEmail::__construct()
woocommerce_report_export_email_labels
woocommerce/src/Admin/ReportCSVEmail.php 63-77
$this->report_labels = apply_filters(
	'woocommerce_report_export_email_labels',
	array(
		'categories' => __( 'Categories', 'woocommerce' ),
		'coupons'    => __( 'Coupons', 'woocommerce' ),
		'customers'  => __( 'Customers', 'woocommerce' ),
		'downloads'  => __( 'Downloads', 'woocommerce' ),
		'orders'     => __( 'Orders', 'woocommerce' ),
		'products'   => __( 'Products', 'woocommerce' ),
		'revenue'    => __( 'Revenue', 'woocommerce' ),
		'stock'      => __( 'Stock', 'woocommerce' ),
		'taxes'      => __( 'Taxes', 'woocommerce' ),
		'variations' => __( 'Variations', 'woocommerce' ),
	)
);

Where the hook is used in WooCommerce

Usage not found.