[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)





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

Custom classname block support flag.

File Size: 65 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_custom_classname_support( $block_type )   X-Ref
Registers the custom classname block attribute for block types that support it.

param: WP_Block_Type $block_type Block Type.

wp_apply_custom_classname_support( $block_type, $block_attributes )   X-Ref
Adds the custom classnames to the output.

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

Generated : Fri Dec 2 08:20:02 2022 Cross-referenced by PHPXref