src/WooCommerce/Helpers/Token.php
protected function getMetaDataValue(array $metaData, $property)
    {
	    $property = ltrim($property, '_');
        $value = null;
        foreach ($metaData as $metaItem) {
        	$key = ltrim($metaItem->key, '_');
            if ($property === $key) {
                $value = $metaItem->value;
                break;
            }
        }
        return $value;
    }
protected function getMetaDataValue(array $metaData, $property)
    {
	    $property = ltrim($property, '_');
        $value = null;
        foreach ($metaData as $metaItem) {
        	$key = ltrim($metaItem->key, '_');
            if ($property === $key) {
                $value = $metaItem->value;
                break;
            }
        }
        return $value;
    }
protected function getMetaDataValue ( array $ metaData , $ property ) { $ property = ltrim ( $ property , '_' ) ; $ value = null ; foreach ( $ metaData as $ metaItem ) { $ key = ltrim ( $ metaItem -> key , '_' ) ; if ( $ property === $ key ) { $ value = $ metaItem -> value ; break ; } } return $ value ; }
Extracts a value from a set of WooCommerce meta data objects.

WooCommerce meta data is stored in objects having twice the set of
properties id, key, and value, once in the property current_value and
once in the property data. If 1 of the properties id, key or value is
retrieved, its value from the current_value set is returned.

@param object[] $metaData
The meta data set to search in.
@param string $property
The name of the property to search for. May be with or without a
leading underscore.

@return null|string
The value for the property of the given name, or null or the empty
string if not available (or the property really equals null or the
empty string). The return value may be a scalar (numeric type) that can
be converted to a string.
Extracts a value from a set of WooCommerce meta data objects .