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'];

Метод класса: AbstractBlock{}

Хуков нет.

Возвращает

callable|null;.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_block_type_render_callback();

Заметки

Код AbstractBlock::get_block_type_render_callback() WC 8.7.0

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