Skip to content

Instantly share code, notes, and snippets.

@mikeyarce
Created April 18, 2018 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeyarce/e4caa8d938c0d1c43795de94c390ae2c to your computer and use it in GitHub Desktop.
Save mikeyarce/e4caa8d938c0d1c43795de94c390ae2c to your computer and use it in GitHub Desktop.
Override WooCommerce thumbnail image size
<?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