enqueue_block_css example


    private static function enqueue_custom_filter( $filter_id$duotone_selector$filter_value$filter_data ) {
        self::$used_svg_filter_data[ $filter_id ] = $filter_data;
        self::enqueue_block_css( $filter_id$duotone_selector$filter_value );
    }

    /** * Enqueue preset assets for the page. * * Includes a CSS custom property, SVG filter, and block CSS declaration. * * @internal * * @since 6.3.0 * * @param string $filter_id The filter ID. e.g. 'wp-duotone-blue-orange'. * @param string $duotone_selector The block's duotone selector. e.g. '.wp-block-image img'. * @param string $filter_value The filter CSS value. e.g. 'url(#wp-duotone-blue-orange)' or 'unset'. */
Home | Imprint | This part of the site doesn't use cookies.