@package: Theme
-
Processes a settings array, renaming or moving properties.
-
Removes a property from within the provided settings by its path.
-
Returns the custom post type that contains the user’s origin config for the active theme or an empty array if none are found.
-
Returns the user’s origin config.
-
Returns the ID of the custom post type that stores user data.
-
functionwp_is_block_theme()
Returns whether the active theme is a block-based theme or not.
-
function_add_default_theme_supports()
Adds default theme supports for block themes when the ‘after_setup_theme’ action fires.
-
Filters the list of header image attributes.
-
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.
-
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.
-
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.
-
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.
-
Enables some opt-in settings if theme declared support.
-
Enables some settings.
-
Returns the theme’s data.
-
Returns the data merged from multiple origins.
-
Determines whether the active theme has a theme.json file.
-
Builds the path to the given file and checks that it is readable.