Created
April 18, 2018 00:05
-
-
Save mikeyarce/b0bb7fa0d815c85c723638842fb1f6cc to your computer and use it in GitHub Desktop.
Override WooCommerce Gallery Thumbnail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) { | |
return array( | |
'width' => 400, | |
'height' => 400, | |
'crop' => 1, | |
); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment