public function getMetaValue($name)
    {
        /** @var PostMeta $meta */
        foreach ($this->getMetas() as $meta) {
            if ($name == $meta->getKey()) {
                return $meta->getValue();
            }
        }

        return;
    }
public function getMetaValue($name)
    {
        /** @var PostMeta $meta */
        foreach ($this->getMetas() as $meta) {
            if ($name == $meta->getKey()) {
                return $meta->getValue();
            }
        }

        return;
    }
public function getMetaValue ( $ name ) { /** @var PostMeta $meta */ foreach ( $ this -> getMetas ( ) as $ meta ) { if ( $ name == $ meta -> getKey ( ) ) { return $ meta -> getValue ( ) ; } } return ; }
Returns user meta value from a meta key name.

@param string $name

@return string|null
Returns user meta value from a meta key name .