2

I am trying to find out where does Gutenberg save changes/settings/options and how to access them? in Javascript object, variable or HTML-DOM?

for example, whenever we choose category checkboxes, tags or change this or that settings or options in Gutenberg blocks, where all those changes are saved in that moment?

1

All datas seems to be stored in JS objects, and not in HTML-DOM. We can use:

wp.data.select("core").getXXXXXXXXXXXX()
wp.data.select("core/editor").getXXXXXXXXXXXX()
...

There are many areas too, you can list them with: console.log(wp.blocks.getBlockTypes());

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.