Automattic\WooCommerce\Blocks\BlockTypes

ProductSKU::register_block_type_assets()protectedWC 1.0

Overwrite parent method to prevent script registration.

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

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

Хуков нет.

Возвращает

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

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

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

Код ProductSKU::register_block_type_assets() WC 8.7.0

protected function register_block_type_assets() {
	return null;
}