How to check in JS if the currently edited post has no Gutenberg blocks added
Question
Using wp.data.select('core/editor').getEditorBlocks()
which returns empty arrays if there is no blocks is a way, but I’m curious if I can check it in an easier or better way?
0
3 months
0 Answers
8 views
0
Leave an answer
You must login or register to add a new answer .