woocommerce_cart_contents_count, array_sum( wp_list_pluck( $this->get_cart(

woocommerce_cart_contents_count, array_sum( wp_list_pluck( $this->get_cart(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_cart_contents_count, array_sum( wp_list_pluck( $this->get_cart(') is found 1 times:

  • /includes/class-wc-cart.php line 737
    	 *
    	 * @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