WC_Product_CSV_Importer::parse_comma_field( string $value )

Parse a comma-delineated field from a CSV.


Description Description


Parameters Parameters

$value

(Required) Field value.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/import/class-wc-product-csv-importer.php

	public function parse_comma_field( $value ) {
		if ( empty( $value ) && '0' !== $value ) {
			return array();
		}

		$value = $this->unescape_data( $value );
		return array_map( 'wc_clean', $this->explode_values( $value ) );
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.