Last active
February 25, 2020 13:55
-
-
Save plugin-republic/d12b8f607b053d66d24f84370bd44ce3 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Use a different size for add-on images | |
*/ | |
function prefix_field_image_size( $size ) { | |
return 'large'; | |
} | |
add_filter( 'pewc_filter_field_image_size', 'prefix_field_image_size', 10 ); | |
/** | |
* Use a different size for image swatch images | |
*/ | |
function prefix_image_swatch_thumbnail_size( $size, $item ) { | |
return 'large'; | |
} | |
add_filter( 'pewc_image_swatch_thumbnail_size', 'prefix_image_swatch_thumbnail_size', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment