added new filter for product thumbnail size.
This commit is contained in:
parent
5a7dd4938d
commit
d8f7deb92c
|
@ -22,8 +22,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
global $post, $product;
|
||||
$columns = apply_filters( 'woocommerce_product_thumbnails_columns', 4 );
|
||||
$thumbnail_size = apply_filters( 'woocommerce_product_thumbnails_size', 'full' );
|
||||
$post_thumbnail_id = get_post_thumbnail_id( $post->ID );
|
||||
$full_size_image = wp_get_attachment_image_src( $post_thumbnail_id, 'full' );
|
||||
$full_size_image = wp_get_attachment_image_src( $post_thumbnail_id, $thumbnail_size );
|
||||
$image_title = get_post_field( 'post_excerpt', $post_thumbnail_id );
|
||||
$placeholder = has_post_thumbnail() ? 'with-images' : 'without-images';
|
||||
$wrapper_classes = apply_filters( 'woocommerce_single_product_image_gallery_classes', array(
|
||||
|
|
Loading…
Reference in New Issue