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

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

add_filter( 'woocommerce_csv_product_import_mapping_special_columns', 'wp_kama_woocommerce_csv_product_import_mapping_special_columns_filter', 10, 2 );

/**
 * Function for `woocommerce_csv_product_import_mapping_special_columns` filter-hook.
 * 
 * @param  $array       
 * @param  $raw_headers 
 *
 * @return 
 */
function wp_kama_woocommerce_csv_product_import_mapping_special_columns_filter( $array, $raw_headers ){

	// filter...
	return $array;
}
$array
-
$raw_headers
-

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

WC_Product_CSV_Importer_Controller::auto_map_columns()
woocommerce_csv_product_import_mapping_special_columns
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 547-570
apply_filters(
	'woocommerce_csv_product_import_mapping_special_columns',
	array(
		/* translators: %d: Attribute number */
		__( 'Attribute %d name', 'woocommerce' ) => 'attributes:name',
		/* translators: %d: Attribute number */
		__( 'Attribute %d value(s)', 'woocommerce' ) => 'attributes:value',
		/* translators: %d: Attribute number */
		__( 'Attribute %d visible', 'woocommerce' ) => 'attributes:visible',
		/* translators: %d: Attribute number */
		__( 'Attribute %d global', 'woocommerce' ) => 'attributes:taxonomy',
		/* translators: %d: Attribute number */
		__( 'Attribute %d default', 'woocommerce' ) => 'attributes:default',
		/* translators: %d: Download number */
		__( 'Download %d ID', 'woocommerce' ) => 'downloads:id',
		/* translators: %d: Download number */
		__( 'Download %d name', 'woocommerce' ) => 'downloads:name',
		/* translators: %d: Download number */
		__( 'Download %d URL', 'woocommerce' ) => 'downloads:url',
		/* translators: %d: Meta number */
		__( 'Meta: %s', 'woocommerce' ) => 'meta:',
	),
	$raw_headers
)

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

woocommerce/includes/admin/importers/mappings/default.php 113
add_filter( 'woocommerce_csv_product_import_mapping_special_columns', 'wc_importer_default_special_english_mappings', 100 );
woocommerce/includes/admin/importers/mappings/shopify.php 65
add_filter( 'woocommerce_csv_product_import_mapping_special_columns', 'wc_importer_shopify_special_mappings', 10, 2 );