Automattic\WooCommerce\Blocks\BlockTypes

MiniCart::should_not_render_mini_cart()publicWC 1.0

Returns whether the Mini-Cart should be rendered or not.

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

Хуков нет.

Возвращает

true|false.

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

$MiniCart = new MiniCart();
$MiniCart->should_not_render_mini_cart( $attributes );
$attributes(массив) (обязательный)
Block attributes.

Код MiniCart::should_not_render_mini_cart() WC 8.7.0

public function should_not_render_mini_cart( array $attributes ) {
	return isset( $attributes['cartAndCheckoutRenderStyle'] ) && 'hidden' !== $attributes['cartAndCheckoutRenderStyle'];
}