@package: Theme
-
Constructor.
-
Updates the theme.json with the the given data.
-
Returns an array containing the underlying data following the theme.json specification.
-
classWP_Theme_JSON_Data
Class to provide access to update a theme.json structure.
-
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.
-
Given an element name, returns a class name.
-
hookget_header_image
Filters the header image URL.
-
Filters the data provided by the theme for global styles and settings.
-
Gets the styles for blocks from the block.json file.
-
Filters the data provided by the blocks for global styles & settings.
-
When given an array, this will remove any keys with the name `//`.
-
Filters the data provided by the user for global styles & settings.
-
Filters the default data provided by WordPress for global styles & settings.
-
Checks whether the registered blocks were already processed for this origin.
-
Returns the style variations defined by the theme.
-
Returns the current theme’s wanted patterns(slugs) to be registered from Pattern Directory.
-
Returns a valid theme.json as provided by a theme.
-
For metadata values that can either be booleans or paths to booleans, gets the value.
-
Converts all filter (duotone) presets into SVGs.
-
classWP_Theme_JSON_Schema
Class that migrates a given theme.json structure to the latest schema.
-
Function that migrates a given theme.json structure to the last version.
-
Removes the custom prefixes for a few properties that were part of v1:
-
Processes the settings subtree.