WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer::parse_comma_field() public WC 1.0

Parse a comma-delineated field from a CSV.

{} It's a method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

Array.

Usage

$WC_Product_CSV_Importer = new WC_Product_CSV_Importer();
$WC_Product_CSV_Importer->parse_comma_field( $value );
$value(string) (required)
Field value.

Code of WC_Product_CSV_Importer::parse_comma_field() WC 5.8.0

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 ) );
}