Setting model fields
Alter has built in support to WordPress default fields such as title and thumbnail, you just need to set to true using the $fields attribute. use Hero\Core\Model; class Car extends Model { public $fields = [ ‘title’ => true, ‘thumbnail’ => true ]; } Custom fields Alter allows you to use custom fields in your model: public