Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::render()protectedWC 1.0

Render the block. Extended by children.

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

Хуков нет.

Возвращает

Строку. Rendered block type output.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render( $attributes, $content, $block );
$attributes(массив) (обязательный)
Block attributes.
$content(строка) (обязательный)
Block content.
$block(WP_Block) (обязательный)
Block instance.

Код AbstractBlock::render() WC 8.7.0

protected function render( $attributes, $content, $block ) {
	return $content;
}