Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::get_block_type_render_callback()protectedWC 1.0

Get the render callback for this block type.

Dynamic blocks should return a callback, for example, return [$this,'render'];

Method of the class: AbstractBlock{}

No Hooks.

Return

callable|null;.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_block_type_render_callback();

Notes

AbstractBlock::get_block_type_render_callback() code WC 9.4.2

protected function get_block_type_render_callback() {
	return [ $this, 'render_callback' ];
}