WC_Product_CSV_Importer::parse_comma_field
Parse a comma-delineated field from a CSV.
Метод класса: WC_Product_CSV_Importer{}
Хуков нет.
Возвращает
array.
Использование
$WC_Product_CSV_Importer = new WC_Product_CSV_Importer(); $WC_Product_CSV_Importer->parse_comma_field( $value );
- $value(строка) (обязательный)
- Field value.
Код WC_Product_CSV_Importer::parse_comma_field() WC Product CSV Importer::parse comma field WC 11.3.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 ) );
}