New and updated in 5.9.0
-
Returns the default slugs for all the presets in an associative array whose keys are the preset paths and the leafs 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.
-
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.
-
Returns the page templates of the active theme.
-
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.
-
Enables some opt-in settings if theme declared support.
-
Enables some settings.
-
Creates an export of the current templates and template parts from the site editor at the specified path in a ZIP file.
-
functionblock_header_area()
Prints the header block template part.
-
functionblock_footer_area()
Prints the footer block template part.
-
Filters the block templates array before the query takes place.
-
Filters the array of queried block templates array after they’ve been fetched.
-
Filters the block template object before the query takes place.
-
Filters the queried block template object after it’s been fetched.
-
functionget_block_file_template()
Retrieves a unified template object based on a theme file.
-
Filters the block template object before the theme file discovery takes place.
-
Filters the block template object after it has been (potentially) fetched from the theme file.
-
functionblock_template_part()
Prints a block template part.
-
Parses a block template and removes the theme attribute from each template part.
-
Builds a unified template object based on a theme file.