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 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

本文标签: javascriptIs there a client side API for handling transients or options