WP_Theme_JSON::get_styles_block_nodes()
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() WP Theme JSON::get styles block nodes code WP 6.5.2
public function get_styles_block_nodes() { return static::get_block_nodes( $this->theme_json ); }