WordPress at a glance
function is not described

wc_flatten_meta_callback() WC 3.0.0

Callback which can flatten post meta (gets the first value if it's an array).

No Hooks.

Return

Mixed. Nothing.

Usage

wc_flatten_meta_callback( $value );
$value(array) (required)
Value to flatten.

Changelog

Since 3.0.0 Introduced.

Code of wc_flatten_meta_callback() WC 5.3.0

<?php
function wc_flatten_meta_callback( $value ) {
	return is_array( $value ) ? current( $value ) : $value;
}