diff --git a/src/classes/entities/class-tainacan-metadata.php b/src/classes/entities/class-tainacan-metadata.php index f93f2a99d..3e5d06d35 100644 --- a/src/classes/entities/class-tainacan-metadata.php +++ b/src/classes/entities/class-tainacan-metadata.php @@ -152,6 +152,14 @@ class Metadata extends Entity { function get_field_options(){ return $this->get_mapped_property('field_type_options'); } + + /** + * return the collection_id + * @return integer + */ + function get_collection_id() { + return $this->get_mapped_property('collection_id'); + } /** * Set the metadata name