Created
April 17, 2018 23:58
-
-
Save mikeyarce/f33e4f00ac09421c27bccf9934afcaa0 to your computer and use it in GitHub Desktop.
Set single 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 | |
add_filter( 'woocommerce_get_image_size_single', 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