Block Supports
spacing.php — Spacing Block Support
Handles padding and margin styles for blocks. Source: wp-includes/block-supports/spacing.php Since: 5.8.0 Note: This remains separate from dimensions.php for backwards compatibility,...
typography.php — Typography Block Support
The second-largest block support file. Handles font size (including fluid/responsive), font family, font style/weight, line height, text alignment, text columns,...
utils.php — Block Support Utility Functions
Shared utility functions used across block support files. Source: wp-includes/block-supports/utils.php Since: 6.0.0 Functions wp_should_skip_block_supports_serialization() function wp_should_skip_block_supports_serialization( WP_Block_Type $block_type, string $feature_set,...
generated-classname.php — Generated Class Name Block Support
Generates the default wp-block-{name} CSS class for server-rendered blocks. Source: wp-includes/block-supports/generated-classname.php Since: 5.6.0 Support Key supports.className — defaults to true....
layout.php — Layout Block Support
The largest and most complex block support. Handles layout types (flow, constrained, flex, grid), gap/spacing styles, child layout positioning, and...
position.php — Position Block Support
Handles sticky and fixed positioning for blocks. Source: wp-includes/block-supports/position.php Since: 6.2.0 Support Key supports.position Position types are gated by global...
settings.php — Block Level Presets Support
Allows blocks to override theme preset CSS variables and classes at the block level. Source: wp-includes/block-supports/settings.php Since: 6.2.0 Support Key...
shadow.php — Shadow Block Support
Registers shadow support and applies box-shadow inline styles. Source: wp-includes/block-supports/shadow.php Since: 6.3.0 Support Key supports.shadow Registered Attributes Attribute Type Note...
dimensions.php — Dimensions Block Support
Handles dimension-related styles including minHeight and aspectRatio. Source: wp-includes/block-supports/dimensions.php Since: 5.9.0 Note: This does NOT include the spacing support (padding/margin)...
duotone.php — Duotone Block Support
Registers duotone filter support. All logic is delegated to the WP_Duotone class. Source: wp-includes/block-supports/duotone.php Since: 5.8.0 Note: Parts of the...
elements.php — Elements Styles Block Support
Generates scoped CSS for inner element styles (buttons, links, headings) within blocks. Source: wp-includes/block-supports/elements.php Since: 5.8.0 Overview This support handles...
colors.php — Color Block Support
Registers color-related attributes and generates CSS classes/inline styles for text, background, and gradient colors. Source: wp-includes/block-supports/colors.php Since: 5.6.0 Support Key...