WP_Theme_JSON::get_styles_block_nodes │ public │ WP 6.1.0

A public helper to get the block nodes from a theme.json file.

Method of the class: WP_Theme_JSON{}

No Hooks.

Returns

array. The block nodes in theme.json.

Usage

$WP_Theme_JSON = new WP_Theme_JSON();
$WP_Theme_JSON->get_styles_block_nodes();

Changelog

Since 6.1.0 Introduced.

WP_Theme_JSON::get_styles_block_nodes() code WP 7.1.4

public function get_styles_block_nodes() {
	return static::get_block_nodes( $this->theme_json );
}