WP_Block_Type::get_attributes
Get all available block attributes including possible layout attribute from Columns block.
Method of the class: WP_Block_Type{}
No Hooks.
Returns
Array. Array of attributes.
Usage
$WP_Block_Type = new WP_Block_Type(); $WP_Block_Type->get_attributes();
Changelog
| Since 5.0.0 | Introduced. |
WP_Block_Type::get_attributes() WP Block Type::get attributes code WP 6.9.1
public function get_attributes() {
return is_array( $this->attributes ) ?
$this->attributes :
array();
}