woocommerce_widget_cart_is_hidden

woocommerce_widget_cart_is_hidden

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_widget_cart_is_hidden') is found 1 times:

  • /includes/widgets/class-wc-widget-cart.php line 55
    	 * @param array $args     Arguments.
    	 * @param array $instance Widget instance.
    	 */
    	public function widget( $args, $instance ) {
    		if ( apply_filters( 'woocommerce_widget_cart_is_hidden', is_cart() || is_checkout() ) ) {
    			return;
    		}
    
    		wp_enqueue_script( 'wc-cart-fragments' );
    
    		$hide_if_empty = empty( $instance['hide_if_empty'] ) ? 0 : 1;