WC_Product_CSV_Importer::parse_relative_comma_field()publicWC 1.0

Parse relative comma-delineated field and return product ID.

Method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

Array.

Usage

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

WC_Product_CSV_Importer::parse_relative_comma_field() code WC 8.9.0

public function parse_relative_comma_field( $value ) {
	if ( empty( $value ) ) {
		return array();
	}

	return array_filter( array_map( array( $this, 'parse_relative_field' ), $this->explode_values( $value ) ) );
}