woocommerce_csv_product_import_mapped_columns хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_Product_CSV_Importer_Controller::auto_map_columns()
woocommerce_csv_product_import_mapped_columns
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 607
return apply_filters( 'woocommerce_csv_product_import_mapped_columns', $headers, $raw_headers );

Где используется хук в WooCommerce

woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 163
add_filter( 'woocommerce_csv_product_import_mapped_columns', array( $this, 'auto_map_user_preferences' ), 9999 );