File: wp-includes/class-wp-theme-json.php
-
Returns a filtered declarations array if there is a separator block with only a background style defined in theme.json by adding a color attribute to reflect the changes in the front.
-
Processes the CSS, to apply nesting.
-
Returns the global styles custom CSS.
-
Sets the spacingSizes array based on the spacingScale values from theme.json.
-
Gets the CSS rules for a particular block from theme.json.
-
Outputs the CSS for layout rules on the root.
-
Filters the list of style nodes with metadata.
-
A public helper to get the block nodes from a theme.json file.
-
An internal method to get the block nodes from a theme.json file.
-
Gets the CSS layout rules for a particular block from theme.json layout definitions.
-
Returns a class name by an element name.
-
Returns the current theme’s wanted patterns(slugs) to be registered from Pattern Directory.
-
Returns a valid theme.json as provided by a theme.
-
Converts all filter (duotone) presets into SVGs.
-
For metadata values that can either be booleans or paths to booleans, gets the value.
-
Determines whether a presets should be overridden or not.
-
Returns the default slugs for all the presets in an associative array whose keys are the preset paths and the leaves is the list of slugs.
-
Gets a `default`’s preset name by a provided slug.
-
Removes the preset values whose slug is equal to any of given slugs.
-
Removes insecure data from theme.json.
-
Processes a setting node and returns the same node without the insecure settings.
-
Processes a style node and returns the same node without the insecure styles.
-
Checks that a declaration provided by the user is safe.
-
Returns the template part data of active theme.
-
Converts each style section into a list of rulesets containing the block styles to be appended to the stylesheet.
-
Creates new rulesets as classes for each preset value such as:
-
Function that scopes a selector with another one. This works a bit like SCSS nesting except the `&` operator isn’t supported.
-
Gets preset values keyed by slugs based on settings and metadata.
-
Similar to get_settings_values_by_slug, but doesn’t compute the value.
-
Transforms a slug into a CSS Custom Property.