This topic contains 2 replies, has 2 voices, and was last updated by  nolab 1 week, 3 days ago.

  • Creator
    Topic
  • #15692
    Resolved
    nolab
    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #15699

    Anh 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

    nolab
    Participant

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

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

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.