woocommerce_cart_contents_count

woocommerce_cart_contents_count

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_cart_contents_count') is found 1 times:

  • /includes/class-wc-cart.php line 662
    	 *
    	 * @return int
    	 */
    	public function get_cart_contents_count() {
    		return apply_filters( 'woocommerce_cart_contents_count', array_sum( wp_list_pluck( $this->get_cart(), 'quantity' ) ) );
    	}
    
    	/**
    	 * Get weight of items in the cart.
    	 *
    	 * @since 2.5.0