WP_Theme_JSON::get_styles_block_nodes()publicWP 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.

Return

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 6.1.1

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