Created
April 17, 2018 23:56
-
-
Save mikeyarce/dc629529d71bbf4625489fa6b1f69eb6 to your computer and use it in GitHub Desktop.
Override `woocommerce-single` image size
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
| <?php | |
| add_filter( 'woocommerce_get_image_size_single', function( $size ) { | |
| return array( | |
| 'width' => 400, | |
| 'height' => '', | |
| 'crop' => 0, | |
| ); | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment