Automattic\WooCommerce\Blocks\BlockTypes

MiniCart::render()protectedWC 1.0

Append frontend scripts when rendering the Mini-Cart block.

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

Хуков нет.

Возвращает

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

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

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

Код MiniCart::render() WC 8.7.0

protected function render( $attributes, $content, $block ) {
	return $content . $this->get_markup( MiniCartUtils::migrate_attributes_to_color_panel( $attributes ) );
}