Skip to content

block wrapper class is generated from block name, save to use? #38074

Answered by gziolo
ivanjeremic asked this question in Q&A
Discussion options

You must be logged in to vote

Is it save to be used or is there any chance that future updates change the way the class is generated and my code breaks?

You can assume that his class will always stay the same for the given block name.

There is one remark here. It's something that plugins can modify with a blocks.getBlockDefaultClassName filter, but as far as I know this filter is used to inject more class names rather than change the underlying mechanism.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gziolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
[Feature] Blocks Overall functionality of blocks
2 participants