diff --git a/src/classes/tainacan-loaders.php b/src/classes/tainacan-loaders.php index 161c31549..651a37c44 100644 --- a/src/classes/tainacan-loaders.php +++ b/src/classes/tainacan-loaders.php @@ -71,3 +71,12 @@ function tainacan_terms() { function tainacan_roles() { return \Tainacan\Roles::get_instance(); } + + +/** + * Retrieve the singleton Metadata Repository instance + * @return \Tainacan\Repositories\Metadata The Tainacan Metadata Repository + */ +function tainacan_metadata_sections() { + return \Tainacan\Repositories\Metadata_Sections::get_instance(); +}