Skip to content

Add BlockSupports class for controlling block supports#11

Draft
5t111111 wants to merge 2 commits intomainfrom
update-supports
Draft

Add BlockSupports class for controlling block supports#11
5t111111 wants to merge 2 commits intomainfrom
update-supports

Conversation

@5t111111
Copy link
Copy Markdown
Member

@5t111111 5t111111 commented Mar 2, 2026

Introduce a new BlockSupports class that allows for granular control over block supports in the block editor using a whitelist mechanism. Child themes can specify which supports to keep via a filter, ensuring only the intended blocks are affected. Update the README to include heading level options for the Block Type Controller section.

5t111111 added 2 commits March 2, 2026 06:50
Provides a whitelist-based mechanism to disable top-level block support
keys per block. Child themes use the 'wack_block_supports_enabled_supports'
filter to specify which supports to keep; omitted keys are set to false
via a JS blocks.registerBlockType filter.

Unlike BlockStyle (which processes all registered blocks), this class only
affects blocks explicitly listed in the filter to avoid disrupting unrelated
blocks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant