[ Index ]

PHP Cross Reference of WordPress




/wp-includes/block-supports/ -> padding.php (summary)

Padding block support flag.

File Size: 66 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

wp_register_padding_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_padding_support( $block_type, $block_attributes )   X-Ref
Add CSS classes for block padding to the incoming attributes array.
This will be applied to the block markup in the front-end.

since: 5.8.0
param: WP_Block_Type $block_type       Block Type.
param: array         $block_attributes Block attributes.
return: array Block padding CSS classes and inline styles.

Generated: Fri May 21 01:00:05 2021 Cross-referenced by PHPXref 0.7.1