WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Automattic\WooCommerce\Blocks

AssetsController::update_block_style_dependencies() public WC 1.0

Update block style dependencies after they have been registered.

{} Это метод класса: AssetsController{}

Хуков нет.

Возвращает

null. Ничего.

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

$AssetsController = new AssetsController();
$AssetsController->update_block_style_dependencies();

Код AssetsController::update_block_style_dependencies() WC 5.5.2

<?php
public function update_block_style_dependencies() {
	$wp_styles = wp_styles();
	$style     = $wp_styles->query( 'wc-block-style', 'registered' );

	if ( ! $style ) {
		return;
	}

	// In WC < 5.5, `woocommerce-general` is not registered in block editor
	// screens, so we don't add it as a dependency if it's not registered.
	// In WC >= 5.5, `woocommerce-general` is registered on `admin_enqueue_scripts`,
	// so we need to check if it's registered here instead of on `init`.
	if (
		wp_style_is( 'woocommerce-general', 'registered' ) &&
		! in_array( 'woocommerce-general', $style->deps, true )
	) {
		$style->deps[] = 'woocommerce-general';
	}
}