[ Index ]

PHP Cross Reference of WordPress




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

Colors block support flag.

File Size: 158 lines (6 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_colors_support( $block_type )   X-Ref
Registers the style and colors block attributes for block types that support it.

since: 5.6.0
param: WP_Block_Type $block_type Block Type.

wp_apply_colors_support( $block_type, $block_attributes )   X-Ref
Add CSS classes and inline styles for colors to the incoming attributes array.
This will be applied to the block markup in the front-end.

since: 5.6.0
param: WP_Block_Type $block_type       Block type.
param: array         $block_attributes Block attributes.
return: array Colors CSS classes and inline styles.

Generated: Tue Jun 28 01:00:03 2022 Cross-referenced by PHPXref 0.7.1