AbstractBlock::inject_html_data_attributes( string $content, array $attributes )
Injects block attributes into the block.
Description Description
Parameters Parameters
- $content
-
(Required) HTML content to inject into.
- $attributes
-
(Required) Key value pairs of attributes.
Return Return
(string) Rendered block with data attributes.
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php