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