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

javascript - Is there a client side API for handling transients or options?

programmeradmin0浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

There is a REST API endpoint for settings that can be found at /wp/v2/settings

发布评论

评论列表(0)

  1. 暂无评论