Created
April 18, 2018 00:02
-
-
Save mikeyarce/e4caa8d938c0d1c43795de94c390ae2c to your computer and use it in GitHub Desktop.
Override WooCommerce thumbnail image size
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_thumbnail', function( $size ) { | |
return array( | |
'width' => 500, | |
'height' => 500, | |
'crop' => 1, | |
); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment