Jake Vanderwerf
2026-09-15 01e9a8e40351a87f6548a4f55de842d6f6918ad0
inc/integrations/SyncToTerm.php
@@ -30,6 +30,9 @@
   }
   protected function handleSaveTerm(int $termID, int $tt_id, string $taxonomy, bool $update, array $args):void
   {
      if (isset(self::$syncing['terms'][$termID])) {
         return;
      }
      $tax = jvbNoBase($taxonomy);
      if (!in_array($tax, $this->syncTaxonomies)) {
         return;
@@ -54,19 +57,25 @@
      if ($isShared && $update && !$fields['_keep_synced_'.$this->service_name]) {
         return;
      }
      self::$syncing['terms'][$termID] = true;
      $this->removeSaveTerm();
      $this->handleTheSaveTerm($termID, $update, $taxonomy, $settings);
      $this->addSaveTerm();
      unset(self::$syncing['terms'][$termID]);
   }
   /**
    * @param int $termID
    * @param bool $update
    * @param string $taxonomy
    * @param array $settings
    * @return void
    */
   protected function handleTheSaveTerm(int $termID, bool $update, string $taxonomy, array $settings):void
   {
      if (!$this->isSetUp()) {
         return;
      }
      error_log('==== ['.$this->title.']::handleTheSaveTerm ====');
      //TODO: Figure out some sort of permissions for if the user can share this term, particularly for content types
      //TODO: If this is a content type, it likely has its own integration. This is an edmonton.ink problem, so I'm offloading it for now
@@ -92,6 +101,9 @@
   }
   public function handleDeleteTerm(int $termID, string $taxonomy):void
   {
      if (!$this->isSetUp()) {
         return;
      }
      if (!$this->canSync['delete']) {
         return;
      }