New and updated in 6.3.0
-
Get the URL for a duotone filter.
-
Gets the SVG for the duotone filter definition.
-
Returns the prefixed id for the duotone filter for use as a CSS id.
-
Gets the SVG for the duotone filter definition from a preset.
-
Takes the inline CSS duotone variable from a block and return the slug.
-
methodWP_Duotone::is_preset()
Checks if we have a valid duotone preset.
-
Gets the CSS variable name for a duotone preset.
-
Clamps an array of RGBA values.
-
Parses a valid RGB[A] CSS color function/string.
-
Clamps an array of HSLA values.
-
Converts an HSVA array to RGBA.
-
Converts an HSLA array to HSVA.
-
Converts an HSLA array to RGBA.
-
Parses a valid HSL[A] CSS color function/string.
-
Tries to convert an incoming string into RGBA values.
-
Parses any valid Hex3, Hex4, Hex6 or Hex8 string and converts it to an RGBA object.
-
Clamps a value between an upper and lower bound.
-
Processes and clamps a degree (angle) value properly.
-
Converts a hue value to degrees from 0 to 360 inclusive.
-
functionwp_get_development_mode()
Retrieves the current development mode.
-
functionwp_is_development_mode()
Checks whether the site is in the given development mode.
-
functionwp_block_theme_activate_nonce()
Set a JavaScript constant for theme activation.
-
functionwp_get_theme_preview_path()
Filters the blog option to return the path for the previewed theme.
-
Adds a middleware to `apiFetch` to set the theme for the preview.
-
functionwp_lazyload_site_meta()
Queue site meta for lazy-loading.