Core Function
View Source on Trac ↗ get_color_classes_for_block_core_search()
get_color_classes_for_block_core_search( mixed $attributes ) Returns color classnames depending on whether there are named or custom text and background colors.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $attributes array | The block attributes. Required |
Return Value
(string)
The color classnames to be applied to the block elements.
Function Information
Since Version
5.9.0
Source File
wp-includes/blocks/search.php
Advertisement