wppaste
WordPress

WP_Theme_JSON_Resolver

Source
wp-includes/class-wp-theme-json-resolver.php:20
Class that abstracts the processing of the different data sources for site-level config and offers an API to work with them.

Description

This class is for internal core usage and is not supposed to be used by extenders (plugins and/or themes).
This is a low-level API that may need to do breaking changes. Please, use get_global_settings(), get_global_styles(), and get_global_stylesheet() instead.

Compatibility

WordPress
core
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Hooks and filters fired · 5

Every hook that fires from inside WP_Theme_JSON_Resolver, in the order it appears in the class, grouped by the method that fires it.

Properties · 8

$blocks_cachearrayprotected static
Container for keep track of registered blocks.
$coreWP_Theme_JSONprotected static
Container for data coming from core.
$blocksWP_Theme_JSONprotected static
Container for data coming from the blocks.
$themeWP_Theme_JSONprotected static
Container for data coming from the theme.
$userWP_Theme_JSONprotected static
Container for data coming from the user.
$user_custom_post_type_idintprotected static
Stores the ID of the custom post type that holds the user data.
$i18n_schemaarrayprotected static
Container to keep loaded i18n schema for theme.json.
$theme_json_file_cachearrayprotected static
theme.json file cache.

Methods · 22

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-theme-json-resolver.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.