get_all_global_styles_presets example


    private static function is_preset( $duotone_attr ) {
        $slug      = self::get_slug_from_attribute( $duotone_attr );
        $filter_id = self::get_filter_id( $slug );

        return array_key_exists( $filter_id, self::get_all_global_styles_presets() );
    }

    /** * Gets the CSS variable name for a duotone preset. * * Example output: * --wp--preset--duotone--blue-orange * * @internal * * @since 6.3.0 * * @param string $slug The slug of the duotone preset. * @return string The CSS variable name. */
Home | Imprint | This part of the site doesn't use cookies.