WordPress at a glance
function is not described

wc_importer_generic_mappings() WC 3.1.0

Add generic mappings.

No Hooks.

Return

Array. Nothing.

Usage

wc_importer_generic_mappings( $mappings );
$mappings(array) (required)
Importer columns mappings.

Changelog

Since 3.1.0 Introduced.

Code of wc_importer_generic_mappings() WC 5.3.0

<?php
function wc_importer_generic_mappings( $mappings ) {
	$generic_mappings = array(
		__( 'Title', 'woocommerce' )         => 'name',
		__( 'Product Title', 'woocommerce' ) => 'name',
		__( 'Price', 'woocommerce' )         => 'regular_price',
		__( 'Parent SKU', 'woocommerce' )    => 'parent_id',
		__( 'Quantity', 'woocommerce' )      => 'stock_quantity',
		__( 'Menu order', 'woocommerce' )    => 'menu_order',
	);

	return array_merge( $mappings, $generic_mappings );
}