Get all available block attributes including possible layout attribute from Columns block.
public function get_attributes() {
return is_array( $this->attributes ) ?
$this->attributes :
array();
}
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_block_type/get_attributes