Year: 2024
-
Filtering Blocks When allowed_block_types_all is a boolean
If you’re trying to filter which blocks are allowed in the WordPress block editor using allowed_block_types_all but the value is true/false it’s difficult to know what to do. I’ll cover every use case here: If It’s false This means no blocks are allowed. Note that I’ve used empty here so that it also catches empty…