admin管理员组文章数量:1336197
After having some trouble with the ServerSideRender sending a request with headers too large for the nginx server to handle, I wonder if I can avoid using the ServerSideRender callback. In my ServerSideRender callback I am saving options, and reading / writing transients. Can this be done from the client side javascript for a Gutenberg block? Is there a javascript API for reading / writing transients and reading / writing options?
After having some trouble with the ServerSideRender sending a request with headers too large for the nginx server to handle, I wonder if I can avoid using the ServerSideRender callback. In my ServerSideRender callback I am saving options, and reading / writing transients. Can this be done from the client side javascript for a Gutenberg block? Is there a javascript API for reading / writing transients and reading / writing options?
Share Improve this question edited Jun 9, 2020 at 6:31 JohnRDOrazio asked Jun 5, 2020 at 14:53 JohnRDOrazioJohnRDOrazio 1517 bronze badges1 Answer
Reset to default 1There is a REST API endpoint for settings that can be found at /wp/v2/settings
本文标签: javascriptIs there a client side API for handling transients or options
版权声明:本文标题:javascript - Is there a client side API for handling transients or options? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742365619a2461197.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论