How to set Metadata access_id on elgg-3.x

Hello everyone, 

On elgg-2.x I used to create metadata using create_metadata. Metadata access_id is set bt providing access_id to this function.

on elgg-3.x create_metadata is deprecated and we should use $entity->setMetadata. How can I can access_id of metadata on elgg-3.x ?



Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking