Automattic\WooCommerce\Blocks\BlockTypes

MiniCart::should_not_render_mini_cart()publicWC 1.0

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

Method of the class: MiniCart{}

No Hooks.

Return

true|false.

Usage

$MiniCart = new MiniCart();
$MiniCart->should_not_render_mini_cart( $attributes );
$attributes(array) (required)
Block attributes.

MiniCart::should_not_render_mini_cart() code WC 9.4.2

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