public function create($field, AbstractPost $post)
    {
        $data = get_field_object($field, $post->getId());

        return $this->createFromField($data);
    }
public function create($field, AbstractPost $post)
    {
        $data = get_field_object($field, $post->getId());

        return $this->createFromField($data);
    }
public function create ( $ field , AbstractPost $ post ) { $ data = get_field_object ( $ field , $ post -> getId ( ) ) ; return $ this -> createFromField ( $ data ) ; }
Create a new custom field object.

If the field is not registered, a `\Tev\Field\Model\NullField` will be
returned.

@param  string                         $field Field name or ID
@param  \Tev\Post\Model\AbstractPost   $post  Post object field is for
@return \Tev\Field\Model\AbstractField        Field object

@throws \Exception If field type is not registered
Create a new custom field object .