added new filter for product thumbnail size.

This commit is contained in:
Govind Kumar 2017-04-17 11:30:26 +05:30
parent 5a7dd4938d
commit d8f7deb92c
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ if ( ! defined( 'ABSPATH' ) ) {
global $post, $product; global $post, $product;
$columns = apply_filters( 'woocommerce_product_thumbnails_columns', 4 ); $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 ); $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 ); $image_title = get_post_field( 'post_excerpt', $post_thumbnail_id );
$placeholder = has_post_thumbnail() ? 'with-images' : 'without-images'; $placeholder = has_post_thumbnail() ? 'with-images' : 'without-images';
$wrapper_classes = apply_filters( 'woocommerce_single_product_image_gallery_classes', array( $wrapper_classes = apply_filters( 'woocommerce_single_product_image_gallery_classes', array(