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.
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() 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']; }