WC_Product_CSV_Importer::parse_int_field()publicWC 1.0

Parse an int value field

Method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

Int.

Usage

$WC_Product_CSV_Importer = new WC_Product_CSV_Importer();
$WC_Product_CSV_Importer->parse_int_field( $value );
$value(int) (required)
field value.

WC_Product_CSV_Importer::parse_int_field() code WC 8.7.0

public function parse_int_field( $value ) {
	// Remove the ' prepended to fields that start with - if needed.
	$value = $this->unescape_data( $value );

	return intval( $value );
}