Automattic\WooCommerce\Blocks\BlockTypes
MiniCart::should_not_render_mini_cart
Returns whether the Mini-Cart should be rendered or not.
Method of the class: MiniCart{}
No Hooks.
Returns
true|false.
Usage
$MiniCart = new MiniCart(); $MiniCart->should_not_render_mini_cart( $attributes );
- $attributes(array) (required)
- Block attributes.
MiniCart::should_not_render_mini_cart() MiniCart::should not render mini cart code WC 10.3.3
public function should_not_render_mini_cart( array $attributes ) {
return isset( $attributes['cartAndCheckoutRenderStyle'] ) && 'hidden' !== $attributes['cartAndCheckoutRenderStyle'];
}