Automattic\WooCommerce\Blocks\BlockTypes
AtomicBlock::render() protected WC 1.0
Inject attributes and block name.
{} Это метод класса: AtomicBlock{}
Хуков нет.
Возвращает
Строку
. Rendered block type output.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->render( $attributes, $content );
- $attributes(массив) (обязательный)
- Block attributes.
- $content(строка) (обязательный)
- Block content.
Код AtomicBlock::render() AtomicBlock::render WC 5.2.2
protected function render( $attributes, $content ) {
return $this->inject_html_data_attributes( $content, $attributes );
}