WC_Product_CSV_Importer::set_mapped_keys()
Set file mapped keys.
Method of the class: WC_Product_CSV_Importer{}
No Hooks.
Return
null
. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->set_mapped_keys();
WC_Product_CSV_Importer::set_mapped_keys() WC Product CSV Importer::set mapped keys code WC 7.7.0
protected function set_mapped_keys() { $mapping = $this->params['mapping']; foreach ( $this->raw_keys as $key ) { $this->mapped_keys[] = isset( $mapping[ $key ] ) ? $mapping[ $key ] : $key; } }