woocommerce_product_thumbnails_columns

woocommerce_product_thumbnails_columns

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_product_thumbnails_columns') is found 1 times:

  • /templates/single-product/product-image.php line 27
    }
    
    global $product;
    
    $columns           = apply_filters( 'woocommerce_product_thumbnails_columns', 4 );
    $post_thumbnail_id = $product->get_image_id();
    $wrapper_classes   = apply_filters(
    	'woocommerce_single_product_image_gallery_classes',
    	array(
    		'woocommerce-product-gallery',
    		'woocommerce-product-gallery--' . ( $post_thumbnail_id ? 'with-images' : 'without-images' ),