Skip to content

Instantly share code, notes, and snippets.

@NicBeltramelli
Created February 14, 2019 20:23
Show Gist options
  • Save NicBeltramelli/89dd0c6ed42cfd19c2aad544423b591b to your computer and use it in GitHub Desktop.
Save NicBeltramelli/89dd0c6ed42cfd19c2aad544423b591b to your computer and use it in GitHub Desktop.
Change the WooCommerce product category image size
<?php
// Do NOT include the opening php tag.
/**
* Change the WooCommerce product category image size
*
* @author Nic Beltramelli
*/
add_filter(
'subcategory_archive_thumbnail_size', function ( $small_thumbnail_size ) {
$small_thumbnail_size = ('woocommerce_gallery_thumbnail');
return $small_thumbnail_size;
}, 10, 1
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment