WP_Theme_JSON::remove_keys_not_in_schema()
Given a tree, removes the keys that are not present in the schema.
Welcome to the WPPaste WordPress Method index. This page contains a an alphabetically sorted list of methods that are available for use in WordPress. Each method has a brief description of what it does and how it can be used. To find out more about a particular method, simply click on the method name.
Given a tree, removes the keys that are not present in the schema.
Transform a slug into a CSS Custom Property.
Sanitizes the input according to the schemas.
Function that scopes a selector with another one. This works a bit like SCSS nesting except the & operator isn’t supported.
Returns whether a presets should be overridden or not.
Given a selector and a declaration list, creates the corresponding ruleset.
Cleans the cached data so it can be recalculated.
Converts a tree as in i18n-theme.json into a linear array containing metadata to translate a theme.json file.
Returns core’s origin config.
Returns a data structure used in theme.json translation.