Fix: Updating failed. The response is not a valid JSON response.
I created a shortcode to output some HTML on the page. When I added the shortcode, I kept getting this error. Here is how I fixed it.
Make sure the shortcode doesn’t try to output anything directly.
Example: use “return” instead of “echo” in the shortcode function.