最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

metabox - How to have meta boxes save via REST in Gutenberg?

programmeradmin1浏览0评论

I have a number of meta boxes added to a site I'm building, and would like to have their data saved via the REST API rather than have the post save "twice" in Gutenberg (once via REST for the basics, then via POST for the meta boxes).

I can't really convert these to "meta blocks" for various reasons, and I don't want them buried in a plugin panel. Besides they're built in PHP already and it'll take too long to recreate them as React panels.

Is it possible to register these meta boxes as REST compatible or otherwise hook into the action that makes the REST request so I can add my data there (after registering REST support).

发布评论

评论列表(0)

  1. 暂无评论