admin管理员组文章数量:1124662
i need to somehow add language to payload of the request made during template save in Site Editor. Is there some filter or action, so wordpress adds some data during request?
Request URL:
/wp-json/wp/v2/template-parts/mytheme//header?_locale=user
Request Method:
POST
Status Code:
200 OK
Remote Address:
127.0.0.1:443
Referrer Policy:
strict-origin-when-cross-origin
{"id":"mytheme//header","content":"<div style=\"background-color: #BE4C4C; height:3px;\">\r\n</div>\n\n<!-- wp:mytheme/header -->\n<!-- wp:mytheme/header-left {\"id\":13,\"url\":\"/app/uploads/2024/01/photo.jpg\"} /-->\n\n<!-- wp:mytheme/header-right -->\n<!-- wp:navigation {\"ref\":220} /-->\n<!-- /wp:mytheme/header-right -->\n<!-- /wp:mytheme/header -->"}
本文标签: rest apiModify request payload for Core API requests
版权声明:本文标题:rest api - Modify request payload for Core API requests 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736645779a1946098.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论