Jake Vanderwerf
2025-10-20 e729f920139f0c65902be2d6b2c32466b08375e8
inc/meta/MetaManager.php
@@ -19,6 +19,7 @@
   public MetaForm $form;
   protected int|null $object_id;
   public object|null $data;
   protected array $fields =[];
   protected string $field;
   protected mixed $value;
   protected string|null $object_type;
@@ -502,6 +503,9 @@
   protected function getFields(): array
   {
      if (!empty($this->fields)) {
         return $this->fields;
      }
      switch ($this->object_type) {
         case 'post':
            $type = get_post_type((int)$this->object_id);
@@ -601,6 +605,11 @@
        }
    }
   public function setFieldConfig(array $fields):void
   {
      $this->fields = $fields;
   }
    protected function getFieldConfig(string $name):array|false
    {
        $fields = $this->getFields();