Core Function
View Source on Trac ↗ get_block_wrapper_attributes()
get_block_wrapper_attributes( mixed $extra_attributes = array() ) Generates a string of attributes by applying to the current block being
Parameters 0 required
| Name / Type | Description |
|---|---|
| $extra_attributes string[] | Optional. Array of extra attributes to render on the block wrapper. |
Return Value
(string)
String of HTML attributes.
Function Information
Since Version
5.6.0
Source File
wp-includes/class-wp-block-supports.php
Advertisement