W3cubDocs

/WordPress

WP_Theme_JSON::get_styles_block_nodes(): array

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

Return

array The block nodes in theme.json.

Source

$declarations = array();
foreach ( static::PRESETS_METADATA as $preset_metadata ) {
	if ( empty( $preset_metadata['css_vars'] ) ) {

Changelog

Version Description
6.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json/get_styles_block_nodes