WC_Product_CSV_Importer::parse_comma_field
Parse a comma-delineated field from a CSV.
Method of the class: WC_Product_CSV_Importer{}
No Hooks.
Returns
Array.
Usage
$WC_Product_CSV_Importer = new WC_Product_CSV_Importer(); $WC_Product_CSV_Importer->parse_comma_field( $value );
- $value(string) (required)
- Field value.
WC_Product_CSV_Importer::parse_comma_field() WC Product CSV Importer::parse comma field code WC 10.6.2
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 ) );
}