WP_Theme_JSON
Class that encapsulates the processing of structures that adhere to the theme.json spec.
Class that encapsulates the processing of structures that adhere to the theme.json spec.
Constructor.
Function that appends a sub-selector to a existing one.
Given a settings array, it returns the generated rulesets for the preset classes.
Given the block settings, it extracts the CSS Custom Properties for the presets and adds them to the $declarations array following the format:
Given a styles array, it extracts the style properties and adds them to the $declarations array following the format:
Given an array of settings, it extracts the CSS Custom Properties for the custom values and adds them to the $declarations array following the format:
Enables some settings.
Removes the preset values whose slug is equal to any of given slugs.
Given a tree, it creates a flattened one by merging the keys and binding the leaf values to the new keys.