diff --git a/src/classes/repositories/class-tainacan-item-metadata.php b/src/classes/repositories/class-tainacan-item-metadata.php index fcbb5694d..ab61898b2 100644 --- a/src/classes/repositories/class-tainacan-item-metadata.php +++ b/src/classes/repositories/class-tainacan-item-metadata.php @@ -23,6 +23,7 @@ class Item_Metadata extends Repository { } } + Entities\Log::create($this->log_message, $this->log_description, $item_metadata); // return a brand new object return new Entities\Item_Metadata_Entity($item_metadata->get_item(), $item_metadata->get_metadata()); diff --git a/src/classes/repositories/class-tainacan-terms.php b/src/classes/repositories/class-tainacan-terms.php index 18a3e1f08..bf556f877 100644 --- a/src/classes/repositories/class-tainacan-terms.php +++ b/src/classes/repositories/class-tainacan-terms.php @@ -61,7 +61,9 @@ class Terms extends Repository { update_term_meta($term_inserted['term_id'], $prop, $term->get_mapped_property($prop)); } } - + + Entities\Log::create($this->log_message, $this->log_description, $term); + return $term_inserted['term_id']; }