0

I need to see the Post Data that is being submitted when I hit the Update button of the block widget. I want to print this object in JavaScript console so that I can inspect the data.

The reason for this is that I am not able to save some information (selected checkbox values) of my widget.

I don't know whether I could explain the situation well! Hope this screenshot from block widget editor may be helpful!

enter image description here

PS: I have just gone through How to detect when the user clicks the publish/update button in Gutenberg Editor. It looks like there is no default way to do it. If so, is there any other way to accomplish this?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.