src/admin/metaboxes/fields/Field.php
public function getValue ($post_ID)
    {
        if ($post_ID === self::SITE)
            return get_option($this->identifier, $this->default);
        else {
            $value = get_post_meta($post_ID, $this->identifier, true);
            return $value === '' ? $this->default : $value;
        }
    }
public function getValue ($post_ID)
    {
        if ($post_ID === self::SITE)
            return get_option($this->identifier, $this->default);
        else {
            $value = get_post_meta($post_ID, $this->identifier, true);
            return $value === '' ? $this->default : $value;
        }
    }
public function getValue ( $ post_ID ) { if ( $ post_ID === self :: SITE ) return get_option ( $ this -> identifier , $ this -> default ) ; else { $ value = get_post_meta ( $ post_ID , $ this -> identifier , true ) ; return $ value === '' ? $ this -> default : $ value ; } }
Gets the value of this field for a given post

@param int|string $post_ID The post ID or <pre>Field::SITE</pre> if it is a global option

@return string
Gets the value of this field for a given post