woocommerce_get_item_count

woocommerce_get_item_count

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_item_count') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 1013
    		foreach ( $items as $item ) {
    			$count += $item->get_quantity();
    		}
    
    		return apply_filters( 'woocommerce_get_item_count', $count, $item_type, $this );
    	}
    
    	/**
    	 * Get an order item object, based on its type.
    	 *
    	 * @since  3.0.0