WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer::remove_utf8_bom() protected WC 1.0

Remove UTF-8 BOM signature.

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

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->remove_utf8_bom( $string );
$string(string) (required)
String to handle.

Code of WC_Product_CSV_Importer::remove_utf8_bom() WC 5.7.0

protected function remove_utf8_bom( $string ) {
	if ( 'efbbbf' === substr( bin2hex( $string ), 0, 6 ) ) {
		$string = substr( $string, 3 );
	}

	return $string;
}