Title: WP_Theme_JSON_Data::get_data
Published: November 2, 2022
Last modified: April 28, 2025

---

# WP_Theme_JSON_Data::get_data(): array

## In this article

 * [Return](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#wp--skip-link--target)

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

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#return)󠁿

 array

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-theme-json-data.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-theme-json-data.php#L69)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-data.php#L69-L71)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_theme_json_data/get_data/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_theme_json_data%2Fget_data%2F)
before being able to contribute a note or feedback.