Title: wp_theme_json_data_default
Published: November 2, 2022
Last modified: August 20, 2026

---

# apply_filters( ‘wp_theme_json_data_default’, WP_Theme_JSON_Data $theme_json )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?output_format=md#changelog)

Filters the default data provided by WordPress for global styles & settings.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?output_format=md#parameters)󠁿

 `$theme_json`[WP_Theme_JSON_Data](https://developer.wordpress.org/reference/classes/wp_theme_json_data/)

Class to access and update the underlying data.

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

    ```php
    $theme_json = apply_filters( 'wp_theme_json_data_default', new WP_Theme_JSON_Data( $config, 'default' ) );
    ```

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

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Theme_JSON_Resolver::get_core_data()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_core_data/)`wp-includes/class-wp-theme-json-resolver.php` |

Returns core’s origin config.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_theme_json_data_default/?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%2Fhooks%2Fwp_theme_json_data_default%2F)
before being able to contribute a note or feedback.