Site logo

Archived topic

Hiding generateblocks settings pannels based on user groups, or post types ...

1 reply · Started by Elvis on April 13, 2022

Viewing posts 1–2 of 2

Hello,
I did a search about this but no luck.

Tom posted this in GB forum https://community.generateblocks.com/t/remove-documentation-panels/240?u=thisbit and my question would be if you could show how to get names of all pannels so we can control which pannels are available an which not.

I am talking about these names: removeDocumentationPanels, buttonContainerDocumentation, containerDocumentation … is there a way to get a list of these in console?

Something along the lines of this:

wp.blocks.getBlockTypes().filter((block) => { return block.name.indexOf(‘generateblocks’) !== -1});

which in console gives a list of all generateblocks. Is there such a thing for pannels?
Thanks

This archived topic is closed to new replies.