WC_Product_CSV_Importer_Controller::get_special_columns()protectedWC 1.0

Get special columns.

Метод класса: WC_Product_CSV_Importer_Controller{}

Хуков нет.

Возвращает

Массив.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_special_columns( $columns );
$columns(массив) (обязательный)
Raw special columns.

Код WC_Product_CSV_Importer_Controller::get_special_columns() WC 8.7.0

protected function get_special_columns( $columns ) {
	$formatted = array();

	foreach ( $columns as $key => $value ) {
		$regex = $this->sanitize_special_column_name_regex( $key );

		$formatted[ $regex ] = $value;
	}

	return $formatted;
}