Add filter to exporter default column names

This commit is contained in:
claudiulodro 2017-06-02 11:46:27 -07:00
parent 46846ed4e0
commit 992c1cce63
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class WC_Product_CSV_Exporter extends WC_CSV_Batch_Exporter {
* @return array * @return array
*/ */
public function get_default_column_names() { public function get_default_column_names() {
return array( return apply_filters( "woocommerce_product_export_{$this->export_type}_default_columns", array(
'id' => __( 'ID', 'woocommerce' ), 'id' => __( 'ID', 'woocommerce' ),
'type' => __( 'Type', 'woocommerce' ), 'type' => __( 'Type', 'woocommerce' ),
'sku' => __( 'SKU', 'woocommerce' ), 'sku' => __( 'SKU', 'woocommerce' ),
@ -113,7 +113,7 @@ class WC_Product_CSV_Exporter extends WC_CSV_Batch_Exporter {
'cross_sell_ids' => __( 'Cross-sells', 'woocommerce' ), 'cross_sell_ids' => __( 'Cross-sells', 'woocommerce' ),
'product_url' => __( 'External URL', 'woocommerce' ), 'product_url' => __( 'External URL', 'woocommerce' ),
'button_text' => __( 'Button text', 'woocommerce' ), 'button_text' => __( 'Button text', 'woocommerce' ),
); ) );
} }
/** /**