WordPress at a glance
function is not described

wc_check_invalid_utf8() WC 1.0

Function wp_check_invalid_utf8 with recursive array support.

No Hooks.

Return

String|Array. Nothing.

Usage

wc_check_invalid_utf8( $var );
$var(string|array) (required)
Data to sanitize.

Code of wc_check_invalid_utf8() WC 5.2.2

<?php
function wc_check_invalid_utf8( $var ) {
	if ( is_array( $var ) ) {
		return array_map( 'wc_check_invalid_utf8', $var );
	} else {
		return wp_check_invalid_utf8( $var );
	}
}