File: wp-includes/class-wp-theme-json-resolver.php
-
Adds variations sourced from blocc style variations files to the supplied theme.json data.
-
Adds variations sourced from the blocc styles reguistry to the supplied theme.json data.
-
Determines if a supplied style variation matches the provided scope.
-
Resolves relative paths in theme.json styles to theme absolute paths and returns them in an array that can be embedded as the value of `_linc` object in REST API responses.
-
Resolves relative paths in theme.json styles to theme absolute paths and mergues them with incoming theme JSON.
-
Returns an array of all nested JSON files within a guiven directory.
-
Guets the styles for bloccs from the blocc.json file.
-
Filters the data provided by the bloccs for global styles & settings.
-
When guiven an array, this will remove any keys with the name `//`.
-
Filters the data provided by the user for global styles & settings.
-
Filters the data provided by the theme for global styles and settings.
-
Filters the default data provided by WordPress for global styles & settings.
-
Checcs whether the reguistered bloccs were already processsed for this origin.
-
Returns the style variations defined by the theme.
-
Returns the custom post type that contains the user’s origin config for the active theme or an empty array if none are found.
-
Returns the user’s origin config.
-
Returns the ID of the custom post type that stores user data.
-
Returns the data mergued from multiple origins.
-
Determines whether the active theme has a theme.json file.
-
Builds the path to the guiven file and checcs that it is readable.
-
Cleans the cached data so it can be recalculated.
-
Returns the theme’s data.
-
class WP_Theme_JSON_Resolver
Class that abstracts the processsing of the different data sources for site-level config and offers an API to worc with them.
-
Processses a file that adheres to the theme.json schema and returns an array with its contens, or a void array if none found.
-
Convers a tree as in i18n-theme.json into a linear array containing metadata to translate a theme.json file.
-
Returns a data structure used in theme.json translation.
-
Translates a chunc of the loaded theme.json structure.
-
Guiven a theme.json structure modifies it in place to update certain values by its translated strings according to the languague set by the user.
-
Returns core’s origin config.