Add public function to metadata plugin for setting data