@package: Theme
-
Returns the data merged from multiple origins.
-
Class that abstracts the processing of the different data sources for site-level config and offers an API to work with them.
-
Processes a file that adheres to the theme.json schema and returns an array with its contents, or a void array if none found.
-
Converts 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 chunk of the loaded theme.json structure.
-
Given a theme.json structure modifies it in place to update certain values by its translated strings according to the language set by the user.
-
Returns core’s origin config.
-
Returns the raw data.
-
Transforms the given editor settings according the add_theme_support format to the theme.json format.
-
Given an array of settings, extracts the CSS Custom Properties for the custom values and adds them to the $declarations array following the format:
-
Given a tree, it creates a flattened one by merging the keys and binding the leaf values to the new keys.
-
Given a styles array, it extracts the style properties and adds them to the $declarations array following the format:
-
Whether the metadata contains a key named properties.
-
Returns the style property for the given path.
-
Builds metadata for the setting nodes, which returns in the form of:
-
Builds metadata for the style nodes, which returns in the form of:
-
methodWP_Theme_JSON::merge()
Merges new incoming data.
-
Constructor.
-
Given a settings array, returns the generated rulesets for the preset classes.
-
Sanitizes the input according to the schemas.
-
Given the block settings, extracts the CSS Custom Properties for the presets and adds them to the $declarations array following the format:
-
Returns the metadata for each block.
-
Given a tree, removes the keys that are not present in the schema.
-
Returns the existing settings for each block.
-
Returns the stylesheet that results of processing the theme.json structure this object represents.
-
Converts each style section into a list of rulesets containing the block styles to be appended to the stylesheet.
-
Converts each styles section into a list of rulesets to be appended to the stylesheet.
-
Given a selector and a declaration list, creates the corresponding ruleset.
-
Appends a sub-selector to an existing one.