Automattic\WooCommerce\Blocks\BlockTypes
MiniCart::render()
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() MiniCart::render WC 9.7.1
protected function render( $attributes, $content, $block ) { return $content . $this->get_markup( MiniCartUtils::migrate_attributes_to_color_panel( $attributes ) ); }