Skip to content

Instantly share code, notes, and snippets.

@wplit
Created May 6, 2020 08:36
Show Gist options
  • Select an option

  • Save wplit/ddf0dc0805020f916f436687383ae67c to your computer and use it in GitHub Desktop.

Select an option

Save wplit/ddf0dc0805020f916f436687383ae67c to your computer and use it in GitHub Desktop.
resize woocommerce gallery thumbnails
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
return array(
'width' => 200,
'height' => 200,
'crop' => 1,
);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment