WP_Block_Type::get_attributes()publicWP 5.0.0

Get all available block attributes including possible layout attribute from Columns block.

Method of the class: WP_Block_Type{}

No Hooks.

Return

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() code WP 6.5.3

public function get_attributes() {
	return is_array( $this->attributes ) ?
		$this->attributes :
		array();
}