| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Spacing block support flag. For backwards compatibility, this remains separate to the dimensions.php block support despite both belonging under a single panel in the editor.
| File Size: | 89 lines (3 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| wp_register_spacing_support( $block_type ) X-Ref |
| Registers the style block attribute for block types that support it. since: 5.8.0 param: WP_Block_Type $block_type Block Type. |
| wp_apply_spacing_support( $block_type, $block_attributes ) X-Ref |
| Add CSS classes for block spacing to the incoming attributes array. This will be applied to the block markup in the front-end. return: array Block spacing CSS classes and inline styles. since: 5.8.0 param: WP_Block_Type $block_type Block Type. param: array $block_attributes Block attributes. |
| Generated: Sat Nov 8 01:00:02 2025 | Cross-referenced by PHPXref 0.7.1 |