woocommerce_csv_product_import_mapped_columns
Usage
add_filter( 'woocommerce_csv_product_import_mapped_columns', 'wp_kama_woocommerce_csv_product_import_mapped_columns_filter', 10, 2 ); /** * Function for `woocommerce_csv_product_import_mapped_columns` filter-hook. * * @param $headers * @param $raw_headers * * @return */ function wp_kama_woocommerce_csv_product_import_mapped_columns_filter( $headers, $raw_headers ){ // filter... return $headers; }
- $headers
- -
- $raw_headers
- -
Where the hook is called
woocommerce_csv_product_import_mapped_columns
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 742
return apply_filters( 'woocommerce_csv_product_import_mapped_columns', $headers, $raw_headers );
Where the hook is used in WooCommerce
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 213
add_filter( 'woocommerce_csv_product_import_mapped_columns', array( $this, 'auto_map_user_preferences' ), 9999 );