AbstractBlock::render_callback( array|WP_Block $attributes = array(), string $content = '' )
The default render_callback for all blocks. This will ensure assets are enqueued just in time, then render the block (if applicable).
Description Description
Parameters Parameters
- $attributes
-
(Optional) Block attributes, or an instance of a WP_Block. Defaults to an empty array.
Default value: array()
- $content
-
(Optional) Block content.
Default value: ''
Return Return
(string) Rendered block type output.
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php