metabox info

Support MB REST API metabox infoResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15692
    nolabnolab
    Participant

    Hi!

    I'm creating some custom endpoints with register_rest_route for a custom post type.

    I would like to add all the metabox fields to each post in that endpoint.

    is it possible? What would be the best approach? and, would it be possible if I am working with metabox custom table?

    I searched a bit around but did not find a mention to this.

    Thanks!

    #15699
    Anh TranAnh Tran
    Keymaster

    Hi,

    This is similar to what we've done in the MB REST API plugin. Please take a look at the plugin code to see how it's done.

    #15700
    nolabnolab
    Participant

    Thanks, I tried it this morning, and I have almost done.

    The code in the plugin is very clear, thanks!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.