New and updated in 5.8.0
-
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.
-
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.
-
Given an array of presets keyed by origin and the value key of the preset, it returns an array where each key is the preset slug and each value the preset value.
-
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.
-
Build a unified template object based a post Object.
-
functionget_block_templates()
Retrieves a list of unified template objects based on a query.
-
functionget_block_template()
Retrieves a single unified template object using its id.
-
functionwp_get_webp_info()
Extracts meta information about a WebP file: width, height, and type.
-
Filters whether the Media Library grid has infinite scrolling. Default `false`.
-
functionget_adjacent_image_link()
Gets the next or previous image link that has the same post parent.
-
functionget_next_image_link()
Gets the next image link that has the same post parent.
-
functionget_previous_image_link()
Gets the previous image link that has the same post parent.
-
hookdocument_title
Filters the document title.
-
functionblock_has_support()
Checks whether the current block type supports the feature requested.
-
Converts typography keys declared under `supports.*` to `supports.typography.*`.