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


(Optional) Block attributes, or an instance of a WP_Block. Defaults to an empty array.

Default value: array()


(Optional) Block content.

Default value: ''

Top ↑

Return Return

(string) Rendered block type output.

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.