AbstractBlock::inject_html_data_attributes( string $content, array $attributes )

Injects block attributes into the block.

Description Description

Parameters Parameters


(Required) HTML content to inject into.


(Required) Key value pairs of attributes.

Top ↑

Return Return

(string) Rendered block with data attributes.

Top ↑

Source Source

File: packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.