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.
Return Return
(array)
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 ) ); }