WC_Product_CSV_Importer::parse_stock_quantity_field()
Parse the stock qty field.
Метод класса: WC_Product_CSV_Importer{}
Хуков нет.
Возвращает
float|Строку
.
Использование
$WC_Product_CSV_Importer = new WC_Product_CSV_Importer(); $WC_Product_CSV_Importer->parse_stock_quantity_field( $value );
- $value(строка) (обязательный)
- Field value.
Код WC_Product_CSV_Importer::parse_stock_quantity_field() WC Product CSV Importer::parse stock quantity field WC 9.3.1
public function parse_stock_quantity_field( $value ) { if ( '' === $value ) { return $value; } // Remove the ' prepended to fields that start with - if needed. $value = $this->unescape_data( $value ); return wc_stock_amount( $value ); }