Automattic\WooCommerce\Blocks\BlockTypes

ComingSoon::register_block_type_assets()protectedWC 1.0

It is necessary to register and enqueue assets during the render phase because we want to load assets only if the block has the content.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->register_block_type_assets();

Код ComingSoon::register_block_type_assets() WC 9.8.5

protected function register_block_type_assets() {
		parent::register_block_type_assets();
		$this->register_chunk_translations( [ $this->block_name ] );
}