Automattic\WooCommerce\Blocks\BlockTypes
MiniCart::should_not_render_mini_cart
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() MiniCart::should not render mini cart WC 10.3.6
public function should_not_render_mini_cart( array $attributes ) {
return isset( $attributes['cartAndCheckoutRenderStyle'] ) && 'hidden' !== $attributes['cartAndCheckoutRenderStyle'];
}