Core Function
View Source on Trac ↗ wp_apply_custom_classname_support()
wp_apply_custom_classname_support( mixed $block_type, mixed $block_attributes ) Adds the custom classnames to the output.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $block_type WP_Block_Type | Block Type. Required |
| $block_attributes array | Block attributes. Required |
Return Value
(array)
Block CSS classes and inline styles.
Function Information
Since Version
5.6.0
Source File
wp-includes/block-supports/custom-classname.php
Advertisement