Images implements Registerable, Service
This class handles the bulk add-to-cart.
Tags
Interfaces, Classes and Traits
- Registerable
 - Service
 
Table of Contents
- get_gallery_image_ids() : array<string|int, mixed>
 - Filter the gallery image IDs so that the variation images can be added to it
 - get_image_id() : int
 - Filter the image ID of a product so that the first variation image is returned if no product image is set
 - register() : mixed
 
Methods
get_gallery_image_ids()
Filter the gallery image IDs so that the variation images can be added to it
    public
                get_gallery_image_ids(array<string|int, mixed> $gallery_image_ids, WC_Product $product) : array<string|int, mixed>
    
        Parameters
- $gallery_image_ids : array<string|int, mixed>
 - $product : WC_Product
 
Return values
array<string|int, mixed> —get_image_id()
Filter the image ID of a product so that the first variation image is returned if no product image is set
    public
                get_image_id(int $image_id, WC_Product $product) : int
    
        Parameters
- $image_id : int
 - $product : WC_Product
 
Return values
int —register()
    public
                register() : mixed