how do i get the audience of an user post from javascript?

By Higros

I have developed a plugin that uses certain information of an user post, and i need to extract the information of the audience of an user post in javascript.

The way to do this is get the value of the audience selector and then extract the audience of the access group, but i haven't found a way to extract the users of an access group in javascript, is there a function like 'get_members_of_access_collection' for javascript?

thanks in advance

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