[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)





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

Generated classname block support flag.

File Size: 71 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_get_block_default_classname( $block_name )   X-Ref
Gets the generated classname from a given block name.

return: string Generated classname.
param: string $block_name Block Name.

wp_apply_generated_classname_support( $block_type )   X-Ref
Adds the generated classnames to the output.

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

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