Project: Block Supports

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 classic theme compatibility. Source: wp-includes/block-supports/layout.php Since: 5.8.0 Support Keys supports.layout...

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 theme settings (not just block support): settings.position.sticky must be true...

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 supports.__experimentalSettings Block Attributes Read $block['attrs']['settings'] — A theme.json-compatible settings object...

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 style object Only set if style key already exists (appears...

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, even though both appear under the "Dimensions" panel in the...

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, text decoration, text transform, letter spacing, writing mode, and fit...

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, ?string $feature = null ): bool Since: 6.0.0 Access: private...

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. Functions wp_get_block_default_classname() function wp_get_block_default_classname( string $block_name ): string Since: 5.6.0...

border.php — Border Block Support

Registers border-related attributes and generates CSS classes/inline styles for border properties. Source: wp-includes/block-supports/border.php Since: 5.8.0 Support Key supports.__experimentalBorder Can be set to true (all border features) or an object with...

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 supports.color Can be true (all color features) or an object:...

← Back to Chubes.net