Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::get_block_type_render_callbackprotectedWC 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.

Returns

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 10.5.0

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