Created
March 21, 2023 23:37
-
-
Save bryanrsebastian/e2d036c3e59758c6521017a8fe393a20 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* Override the single product gallery thumb sizes */ | |
add_filter( 'woocommerce_gallery_thumbnail_size', 'override_thumb_size', 10, 1 ); | |
function override_thumb_size( $size ) { | |
$size = [ 300, 300 ]; | |
return $size; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment