Automattic\WooCommerce\Blocks\BlockTypes
AbstractBlock::render()
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() AbstractBlock::render WC 9.8.1
protected function render( $attributes, $content, $block ) { return $content; }