• Resolved Jayme Edwards

    (@jcedwards76)


    Hello,

    I have some plugins I’ve built for my site that use the react APIs for gutenberg.

    One of the things I want to do is create a multi-checkbox control for selecting roles associated with a post, then store that in a custom meta field.

    The checkbox control and meta field part I know how to do.

    What I can’t quite figure out, is how to get the roles from wordpress via JavaScript.

    I’m guessing it’s through the @core/data package somehow, but I’m not sure.

    Any help would be awesome, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieving roles in gutenberg?’ is closed to new replies.