WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer::parse_stock_quantity_field() public WC 1.0

Parse the stock qty field.

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

No Hooks.

Return

float|String.

Usage

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

Code of WC_Product_CSV_Importer::parse_stock_quantity_field() WC 5.7.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 );
}