Jake Vanderwerf
2026-09-15 01e9a8e40351a87f6548a4f55de842d6f6918ad0
inc/meta/Meta.php
@@ -1,7 +1,7 @@
<?php
namespace JVBase\meta;
use JVBase\base\options;
use JVBase\base\Options;
use JVBase\managers\Cache;
use JVBase\registrar\Registrar;
@@ -63,7 +63,7 @@
         }
      }
      if ($this->objectType === 'options' && !isset(self::$options)) {
         self::$options = options::getInstance();
         self::$options = Options::getInstance();
      }
      if ($this->objectType === 'post' && function_exists('wc_get_product') && in_array($this->content, ['product', 'product_variation'], true)) {
@@ -217,6 +217,7 @@
   ***************************************************************************/
   public function set(string $name, mixed $value): bool {
      $field = $this->getFieldConfig($name);
      if ($field) {
         if (array_key_exists('type', $field)) {
            if ($field['type'] === 'repeater' && str_contains($name, ':')) {
@@ -575,6 +576,7 @@
         'post'   => Cache::clearPost($this->ID),
         'term'   => Cache::clearTerm($this->ID),
         'user'   => Cache::clearUser($this->ID),
         default => Options::clear()
      };
   }
   protected function isTaxonomy(array $field):bool