[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Generated classname block support flag.

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

Defines 2 functions

  wp_get_block_default_classname()
  wp_apply_generated_classname_support()

Functions
Functions that are not part of a class:

wp_get_block_default_classname( $block_name )   X-Ref
Get the generated classname from a given block name.

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

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

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



Generated: Wed Nov 6 01:00:02 2024 Cross-referenced by PHPXref 0.7.1