Created
February 14, 2019 20:23
-
-
Save NicBeltramelli/89dd0c6ed42cfd19c2aad544423b591b to your computer and use it in GitHub Desktop.
Change the WooCommerce product category 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 | |
// 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