Automattic\WooCommerce\Blocks\BlockTypes
AbstractBlock::render() public WC 1.0
Append frontend scripts when rendering the block.
{} Это метод класса: AbstractBlock{}
Хуков нет.
Возвращает
Строку
. Rendered block type output.
Использование
$AbstractBlock = new AbstractBlock(); $AbstractBlock->render( $attributes, $content );
- $attributes(массив/\WP_Block)
- Block attributes, or an instance of a WP_Block.
По умолчанию: an empty array - $content(строка)
- Block content.
По умолчанию: empty string
Код AbstractBlock::render() AbstractBlock::render WC 5.1.0
public function render( $attributes = [], $content = '' ) {
$this->enqueue_assets( is_a( $attributes, '\WP_Block' ) ? $attributes->attributes : $attributes );
return $content;
}