WP_Theme_JSON_Data::get_data()publicWP 6.1.0

Returns an array containing the underlying data following the theme.json specification.

Method of the class: WP_Theme_JSON_Data{}

No Hooks.

Return

Array.

Usage

$WP_Theme_JSON_Data = new WP_Theme_JSON_Data();
$WP_Theme_JSON_Data->get_data();

Changelog

Since 6.1.0 Introduced.

WP_Theme_JSON_Data::get_data() code WP 6.5.4

public function get_data() {
	return $this->theme_json->get_raw_data();
}