woocommerce_store_api_cart_item_images
woocommerce_store_api_cart_item_images
Appears in: woocommerce.9.7.0, woocommerce.9.7.1
Hook Type: filter
Displaying hooks found in version: woocommerce.9.7.1apply_filters('woocommerce_store_api_cart_item_images') is found 1 times:
- /src/StoreApi/Schemas/V1/CartItemSchema.php line 107
* @param array $cart_item Cart item array. * @param string $cart_item_key Cart item key. * @since 9.6.0 */ $filtered_images = apply_filters( 'woocommerce_store_api_cart_item_images', $product_images, $cart_item, $cart_item_key ); if ( ! is_array( $filtered_images ) || count( $filtered_images ) === 0 ) { return $product_images; } // Return the original images if the filtered image has no ID, or an invalid thumbnail or source URL.