WC_Product_CSV_Importer::set_mapped_keys()protectedWC 1.0

Set file mapped keys.

Method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->set_mapped_keys();

WC_Product_CSV_Importer::set_mapped_keys() code WC 9.1.2

protected function set_mapped_keys() {
	$mapping = $this->params['mapping'];

	foreach ( $this->raw_keys as $key ) {
		$this->mapped_keys[] = isset( $mapping[ $key ] ) ? $mapping[ $key ] : $key;
	}
}